Customize: Fix clearing of `fresh_site` option flag when editing sidebars on widgets admin screen.
Amends [38991]. See #38114, #38533. Fixes #40722. git-svn-id: https://develop.svn.wordpress.org/trunk@40608 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
be2a26ab08
commit
68320b3d9b
|
@ -190,7 +190,7 @@ add_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
|
|||
|
||||
// Mark site as no longer fresh
|
||||
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', 0 );
|
||||
}
|
||||
|
||||
// Misc filters
|
||||
|
|
Loading…
Reference in New Issue