A WordPress-centric search engine for devs and theme authors



upgrade_270 ›

Since2.7.0
Deprecatedn/a
upgrade_270 ( No parameters )
Defined at:
Codex:

Execute changes made in WordPress 2.7.



Source

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'" );
	}
}