upgrade_350

Execute changes made in WordPress 3.5.

Description

upgrade_350(); 

Usage

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

Defined (1)

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

/wp-admin/includes/upgrade.php  
  1. function upgrade_350() { 
  2. global $wp_current_db_version, $wpdb; 
  3.  
  4. if ( $wp_current_db_version < 22006 && $wpdb->get_var( "SELECT link_id FROM $wpdb->links LIMIT 1" ) ) 
  5. update_option( 'link_manager_enabled', 1 ); // Previously set to 0 by populate_options() 
  6.  
  7. if ( $wp_current_db_version < 21811 && wp_should_upgrade_global_tables() ) { 
  8. $meta_keys = array(); 
  9. foreach ( array_merge( get_post_types(), get_taxonomies() ) as $name ) { 
  10. if ( false !== strpos( $name, '-' ) ) 
  11. $meta_keys[] = 'edit_' . str_replace( '-', '_', $name ) . '_per_page'; 
  12. if ( $meta_keys ) { 
  13. $meta_keys = implode( "', '", $meta_keys ); 
  14. $wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key IN ('$meta_keys')" ); 
  15.  
  16. if ( $wp_current_db_version < 22422 && $term = get_term_by( 'slug', 'post-format-standard', 'post_format' ) ) 
  17. wp_delete_term( $term->term_id, 'post_format' );