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.


git-svn-id: https://develop.svn.wordpress.org/trunk@25893 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-10-24 18:17:41 +00:00
parent 9c5420d74d
commit 391b22a4de

View File

@ -894,6 +894,7 @@ function update_core($from, $to) {
do_action( '_core_updated_successfully', $wp_version ); do_action( '_core_updated_successfully', $wp_version );
// Clear the option that blocks auto updates after failures, now that we've been successful. // Clear the option that blocks auto updates after failures, now that we've been successful.
if ( function_exists( 'delete_site_option' ) )
delete_site_option( 'auto_core_update_failed' ); delete_site_option( 'auto_core_update_failed' );
return $wp_version; return $wp_version;