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:
Dion Hulse
2016-01-19 05:06:46 +00:00
parent 5eee5cfc3c
commit b9e62671f6
2 changed files with 88 additions and 27 deletions
+1 -1
View File
@@ -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;