upgrade_450

Executes changes made in WordPress 4.5.0.

Description

upgrade_450(); 

Usage

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

Defined (1)

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

/wp-admin/includes/upgrade.php  
  1. function upgrade_450() { 
  2. global $wp_current_db_version, $wpdb; 
  3.  
  4. if ( $wp_current_db_version < 36180 ) { 
  5.  
  6. // Remove unused email confirmation options, moved to usermeta. 
  7. if ( $wp_current_db_version < 36679 && is_multisite() ) { 
  8. $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name REGEXP '^[0-9]+_new_email$'" ); 
  9.  
  10. // Remove unused user setting for wpLink. 
  11. delete_user_setting( 'wplink' );