WordPress.org

Make WordPress Core

Changeset 38994


Ignore:
Timestamp:
10/28/2016 03:42:08 AM (2 years ago)
Author:
westonruter
Message:

Customize: Remove premature (and verbose) check of fresh_site option due to database not being ready on multisite.

Fixes regression in [38991].
See #38114.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r38991 r38994  
    190190
    191191// Mark site as no longer fresh
    192 if ( get_option( 'fresh_site' ) ) {
    193     foreach ( array( 'publish_post', 'publish_page', 'wp_ajax_save-widget', 'wp_ajax_widgets-order', 'customize_save_after' ) as $action ) {
    194         add_action( $action, '_delete_option_fresh_site' );
    195     }
     192foreach ( array( 'publish_post', 'publish_page', 'wp_ajax_save-widget', 'wp_ajax_widgets-order', 'customize_save_after' ) as $action ) {
     193    add_action( $action, '_delete_option_fresh_site' );
    196194}
    197195
Note: See TracChangeset for help on using the changeset viewer.