From 2d07c3196e473bc2fb5f83e036e09aeb53968776 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helen=20Hou-Sand=C3=AD?= Date: Tue, 1 Nov 2016 20:16:31 +0000 Subject: [PATCH] Only set `fresh_site` during an actual fresh install. props westonruter. fixes #38533. Built from https://develop.svn.wordpress.org/trunk@39076 git-svn-id: http://core.svn.wordpress.org/trunk@39018 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/schema.php | 3 --- wp-admin/includes/upgrade.php | 3 +++ wp-includes/version.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/schema.php b/wp-admin/includes/schema.php index 59a5574d51..cd66e1924b 100644 --- a/wp-admin/includes/schema.php +++ b/wp-admin/includes/schema.php @@ -516,9 +516,6 @@ function populate_options() { // 4.4.0 'medium_large_size_w' => 768, 'medium_large_size_h' => 0, - - // 4.7.0 - 'fresh_site' => 1, ); // 3.3 diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 848002e87b..63c59a4565 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -50,6 +50,9 @@ function wp_install( $blog_title, $user_name, $user_email, $public, $deprecated update_option('admin_email', $user_email); update_option('blog_public', $public); + // Freshness of site - in the future, this could get more specific about actions taken, perhaps. + update_option( 'fresh_site', 1 ); + if ( $language ) { update_option( 'WPLANG', $language ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 12efc6afd6..7caa5025a8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-beta1-39075'; +$wp_version = '4.7-beta1-39076'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.