Advertisements

upgrade_280

Definition:
function upgrade_280() {}

Execute changes made in WordPress 2.8.

Source code

function upgrade_280() {

	global $wp_current_db_version, $wpdb;



	if ( $wp_current_db_version < 10360 )

		populate_roles_280();

	if ( is_multisite() ) {

		$start = 0;

		while( $rows = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options ORDER BY option_id LIMIT $start, 20" ) ) {

			foreach( $rows as $row ) {

				$value = $row->option_value;

				if ( !@unserialize( $value ) )

					$value = stripslashes( $value );

				if ( $value !== $row->option_value ) {

					update_option( $row->option_name, $value );

				}

			}

			$start += 20;

		}

		refresh_blog_details( $wpdb->blogid );

	}

}

3245

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: