From e0817ca1f65bf538523d1a2ae378614f73ae503e Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Fri, 28 Oct 2016 03:42:08 +0000 Subject: [PATCH] Customize: Remove premature (and verbose) check of `fresh_site` option due to database not being ready on multisite. Fixes regression in [38991]. See #38114. git-svn-id: https://develop.svn.wordpress.org/trunk@38994 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/default-filters.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/default-filters.php b/src/wp-includes/default-filters.php index 228235e362..5a739754b6 100644 --- a/src/wp-includes/default-filters.php +++ b/src/wp-includes/default-filters.php @@ -189,10 +189,8 @@ add_filter( 'the_guid', 'esc_url' ); add_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); // Mark site as no longer fresh -if ( get_option( 'fresh_site' ) ) { - foreach ( array( 'publish_post', 'publish_page', 'wp_ajax_save-widget', 'wp_ajax_widgets-order', 'customize_save_after' ) as $action ) { - add_action( $action, '_delete_option_fresh_site' ); - } +foreach ( array( 'publish_post', 'publish_page', 'wp_ajax_save-widget', 'wp_ajax_widgets-order', 'customize_save_after' ) as $action ) { + add_action( $action, '_delete_option_fresh_site' ); } // Misc filters