Customize: Prevent `_delete_option_fresh_site()` from hitting DB if `fresh_site` flag already cleared.

Amends [38991].
Props dlh, westonruter.
Fixes #41039.

Built from https://develop.svn.wordpress.org/trunk@41244


git-svn-id: http://core.svn.wordpress.org/trunk@41084 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2017-08-13 00:57:43 +00:00
parent 6428de97a7
commit 300894da61
2 changed files with 2 additions and 2 deletions

View File

@ -3303,7 +3303,7 @@ function _config_wp_siteurl( $url = '' ) {
* @access private
*/
function _delete_option_fresh_site() {
update_option( 'fresh_site', 0 );
update_option( 'fresh_site', '0' );
}
/**

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.9-alpha-41243';
$wp_version = '4.9-alpha-41244';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.