mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Core Upgrader: Add a locking mechanism to avoid two concurrent updates of WordPress occuring.
Fixes #34878 git-svn-id: https://develop.svn.wordpress.org/trunk@36349 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -484,7 +484,7 @@ function do_core_upgrade( $reinstall = false ) {
|
||||
|
||||
if ( is_wp_error($result) ) {
|
||||
show_message($result);
|
||||
if ('up_to_date' != $result->get_error_code() )
|
||||
if ( 'up_to_date' != $result->get_error_code() && 'locked' != $result->get_error_code() )
|
||||
show_message( __('Installation Failed') );
|
||||
echo '</div>';
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user