Ticket #38533: 38533.1.diff
File 38533.1.diff, 1.8 KB (added by , 7 years ago) |
---|
-
src/wp-admin/includes/schema.php
518 518 'medium_large_size_h' => 0, 519 519 ); 520 520 521 // 4.7.0 522 'fresh_site' => 1, 523 521 524 // 3.3 522 525 if ( ! is_multisite() ) { 523 526 $options['initial_db_version'] = ! empty( $wp_current_db_version ) && $wp_current_db_version < $wp_db_version -
src/wp-includes/default-filters.php
188 188 // Email filters 189 189 add_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); 190 190 191 // Mark site as no longer fresh 192 if ( get_option( 'fresh_site' ) ) { 193 foreach ( array( 'save_post_post', 'save_post_page', 'wp_ajax_save-widget', 'wp_ajax_widgets-order', 'customize_save_after' ) as $action ) { 194 add_action( $action, '_delete_option_fresh_site' ); 195 } 196 } 197 191 198 // Misc filters 192 199 add_filter( 'option_ping_sites', 'privacy_ping_filter' ); 193 200 add_filter( 'option_blog_charset', '_wp_specialchars' ); // IMPORTANT: This must not be wp_specialchars() or esc_html() or it'll cause an infinite loop -
src/wp-includes/functions.php
3241 3241 } 3242 3242 3243 3243 /** 3244 * Delete the fresh site option. 3245 * 3246 * @since 4.7.0 3247 * @access private 3248 */ 3249 function _delete_option_fresh_site() { 3250 update_option( 'fresh_site', 0 ); 3251 } 3252 3253 /** 3244 3254 * Set the localized direction for MCE plugin. 3245 3255 * 3246 3256 * Will only set the direction to 'rtl', if the WordPress locale has