Customize: Remove premature (and verbose) check of `fresh_site` option due to database not being ready on multisite.
Fixes regression in [38991]. See #38114. Built from https://develop.svn.wordpress.org/trunk@38994 git-svn-id: http://core.svn.wordpress.org/trunk@38936 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7343b3bf40
commit
e35ac97641
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue