Advertisements

upgrade_270

Definition:
function upgrade_270() {}

Execute changes made in WordPress 2.7.

Source code

function upgrade_270() {

	global $wpdb, $wp_current_db_version;



	if ( $wp_current_db_version < 8980 )

		populate_roles_270();



	// Update post_date for unpublished posts with empty timestamp

	if ( $wp_current_db_version < 8921 )

		$wpdb->query( "UPDATE $wpdb->posts SET post_date = post_modified WHERE post_date = '0000-00-00 00:00:00'" );

}

3243

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: