public static function ContentSave($content) { $r = $_REQUEST; $old = null; if (isset($r['post_ID']) && isset($r['action'])) { if ($r['action'] == 'editpost') { $old = get_post($r['post_ID']); } elseif ($r['action'] == 'autosave') { $old = get_post($r['post_id']); } if ($old instanceof WP_Post || is_object($old)) { $oldContent = $old->post_content; GFontsDB::ContentSave($old->ID, $oldContent, $content); } } return $content; }