upgrade_430

Executes changes made in WordPress 4.3.0.

Description

upgrade_430(); 

Usage

  1. if ( !function_exists( 'upgrade_430' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/upgrade.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = upgrade_430(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/upgrade.php  
  1. function upgrade_430() { 
  2. global $wp_current_db_version, $wpdb; 
  3.  
  4. if ( $wp_current_db_version < 32364 ) { 
  5.  
  6. // Shared terms are split in a separate process. 
  7. if ( $wp_current_db_version < 32814 ) { 
  8. update_option( 'finished_splitting_shared_terms', 0 ); 
  9. wp_schedule_single_event( time() + ( 1 * MINUTE_IN_SECONDS ), 'wp_split_shared_term_batch' ); 
  10.  
  11. if ( $wp_current_db_version < 33055 && 'utf8mb4' === $wpdb->charset ) { 
  12. if ( is_multisite() ) { 
  13. $tables = $wpdb->tables( 'blog' ); 
  14. } else { 
  15. $tables = $wpdb->tables( 'all' ); 
  16. $global_tables = $wpdb->tables( 'global' ); 
  17. $tables = array_diff_assoc( $tables, $global_tables ); 
  18.  
  19. foreach ( $tables as $table ) {