upgrade_280

Execute changes made in WordPress 2.8.

Description

upgrade_280(); 

Usage

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

Defined (1)

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

/wp-admin/includes/upgrade.php  
  1. function upgrade_280() { 
  2. global $wp_current_db_version, $wpdb; 
  3.  
  4. if ( $wp_current_db_version < 10360 ) 
  5. if ( is_multisite() ) { 
  6. $start = 0; 
  7. while( $rows = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options ORDER BY option_id LIMIT $start, 20" ) ) { 
  8. foreach ( $rows as $row ) { 
  9. $value = $row->option_value; 
  10. if ( !@unserialize( $value ) ) 
  11. $value = stripslashes( $value ); 
  12. if ( $value !== $row->option_value ) { 
  13. update_option( $row->option_name, $value ); 
  14. $start += 20; 
  15. refresh_blog_details( $wpdb->blogid );