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
This commit is contained in:
parent
e0bc1e0c16
commit
e0817ca1f6
@ -189,10 +189,8 @@ add_filter( 'the_guid', 'esc_url' );
|
|||||||
add_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
|
add_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
|
||||||
|
|
||||||
// Mark site as no longer fresh
|
// 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 ) {
|
||||||
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' );
|
||||||
add_action( $action, '_delete_option_fresh_site' );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Misc filters
|
// Misc filters
|
||||||
|
Loading…
Reference in New Issue
Block a user