upgrade_430() – Executes changes made in WordPress 4.3.0.

You appear to be a bot. Output may be restricted

Description

Executes changes made in WordPress 4.3.0.

Usage

upgrade_430();

Parameters

Returns

void

Source

File name: wordpress/wp-admin/includes/upgrade.php
Lines:

1 to 29 of 29
function upgrade_430() {
  global $wp_current_db_version, $wpdb;

  if ( $wp_current_db_version < 32364 ) {
    upgrade_430_fix_comments();
  }

  // Shared terms are split in a separate process.
  if ( $wp_current_db_version < 32814 ) {
    update_option( 'finished_splitting_shared_terms', 0 );
    wp_schedule_single_event( time() + ( 1 * MINUTE_IN_SECONDS ), 'wp_split_shared_term_batch' );
  }

  if ( $wp_current_db_version < 33055 && 'utf8mb4' === $wpdb->charset ) {
    if ( is_multisite() ) {
      $tables = $wpdb->tables( 'blog' );
    } else {
      $tables = $wpdb->tables( 'all' );
      if ( ! wp_should_upgrade_global_tables() ) {
        $global_tables = $wpdb->tables( 'global' );
        $tables        = array_diff_assoc( $tables, $global_tables );
      }
    }

    foreach ( $tables as $table ) {
      maybe_convert_table_to_utf8mb4( $table );
    }
  }
}
 

 View on GitHub View on Trac