From 391b22a4dedb167d002b1202eb0c6756759ef209 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 24 Oct 2013 18:17:41 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/update-core.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php index 05b9a3a99d..8c5cd28c7a 100644 --- a/src/wp-admin/includes/update-core.php +++ b/src/wp-admin/includes/update-core.php @@ -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; }