mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Confirm delete_site_option() exists before calling it during an update.
This function won't yet exist when updating from 2.7 [sic]. fixes #25682 for trunk. Built from https://develop.svn.wordpress.org/trunk@25893 git-svn-id: http://core.svn.wordpress.org/trunk@25805 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0976999929
commit
0ceb189b7b
@ -894,7 +894,8 @@ function update_core($from, $to) {
|
||||
do_action( '_core_updated_successfully', $wp_version );
|
||||
|
||||
// Clear the option that blocks auto updates after failures, now that we've been successful.
|
||||
delete_site_option( 'auto_core_update_failed' );
|
||||
if ( function_exists( 'delete_site_option' ) )
|
||||
delete_site_option( 'auto_core_update_failed' );
|
||||
|
||||
return $wp_version;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user