The following column WordPress Tutorial will introduce to you the solution to the problem of "Prompt when upgrading WordPress: Another update is in progress". I hope it will be helpful to friends in need!
When upgrading WordPress, due to the slow domestic connection to the WP server, the update will stop midway, and a core_updater.lock record will be added to the database wp_options table. When updating again, it will prompt: Another An update is in progress.
Solution, add the following code to the current theme function template functions.php:
global $wpdb; $wpdb->query("DELETE FROM wp_options WHERE option_name = 'core_updater.lock'");
After that, refresh the website page, the record will be automatically deleted, and the program can be upgraded normally.
It is enough to run this code once. There is no need to keep it in the theme. Just delete it after use.
The above is the detailed content of Solve the problem when upgrading WordPress: Another update is in progress. For more information, please follow other related articles on the PHP Chinese website!