upgrade_400

Execute changes made in WordPress 4.0.0.

Description

upgrade_400(); 

Usage

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

Defined (1)

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

/wp-admin/includes/upgrade.php  
  1. function upgrade_400() { 
  2. global $wp_current_db_version; 
  3. if ( $wp_current_db_version < 29630 ) { 
  4. if ( ! is_multisite() && false === get_option( 'WPLANG' ) ) { 
  5. if ( defined( 'WPLANG' ) && ( '' !== WPLANG ) && in_array( WPLANG, get_available_languages() ) ) { 
  6. update_option( 'WPLANG', WPLANG ); 
  7. } else { 
  8. update_option( 'WPLANG', '' );