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:
Weston Ruter 2017-05-10 21:24:29 +00:00
parent be2a26ab08
commit 68320b3d9b
1 changed files with 1 additions and 1 deletions

View File

@ -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