function fs_plugin_db_update() { // database version of firestats data in this particular blog. // if there are several blogs on the same firestats db, each one may need to do some actions in the upgrade prorcess. $db_version = get_option('firestats_db_version'); if (empty($db_version)) { $db_version = 0; } if ($db_version < 11) { $res = fs_update_post_titles(); if ($res !== true) { echo $res; return false; } } update_option('firestats_db_version', FS_REQUIRED_DB_VERSION); }
function fs_ajax_update_wordpress_titles(&$response) { $res = fs_update_post_titles(); if ($res !== true) { ajax_error($response, "Error : " . $res); } }