X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/53f4633144ed68c8b8fb5861f992b5489894a940..dc1231b7312fbdca99e9e887cc2bb35a28f85cdc:/wp-admin/includes/upgrade.php?ds=sidebyside diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 86d8cf91..95381faa 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -222,6 +222,7 @@ As a new WordPress user, you should go to your dashboard to d 'post_date_gmt' => $now_gmt, 'post_content' => $first_page, 'post_excerpt' => '', + 'comment_status' => 'closed', 'post_title' => __( 'Sample Page' ), /* translators: Default page slug */ 'post_name' => __( 'sample-page' ), @@ -534,6 +535,9 @@ function upgrade_all() { if ( $wp_current_db_version < 33055 ) upgrade_430(); + if ( $wp_current_db_version < 33056 ) + upgrade_431(); + maybe_disable_link_manager(); maybe_disable_automattic_widgets(); @@ -1577,6 +1581,20 @@ function upgrade_430_fix_comments() { } } +/** + * Executes changes made in WordPress 4.3.1. + * + * @since 4.3.1 + */ +function upgrade_431() { + // Fix incorrect cron entries for term splitting + $cron_array = _get_cron_array(); + if ( isset( $cron_array['wp_batch_split_terms'] ) ) { + unset( $cron_array['wp_batch_split_terms'] ); + _set_cron_array( $cron_array ); + } +} + /** * Executes network-level upgrade routines. *