Rough first cut of theme browser/installer. Props DD32. see #8652
git-svn-id: http://svn.automattic.com/wordpress/trunk@10553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -276,6 +276,9 @@ function upgrade_all() {
|
||||
if ( $wp_current_db_version < 8989 )
|
||||
upgrade_270();
|
||||
|
||||
if ( $wp_current_db_version < 10360 )
|
||||
upgrade_280();
|
||||
|
||||
maybe_disable_automattic_widgets();
|
||||
|
||||
update_option('db_version', 'db_upgraded');
|
||||
@@ -906,6 +909,18 @@ function upgrade_270() {
|
||||
$wpdb->query( "UPDATE $wpdb->posts SET post_date = post_modified WHERE post_date = '0000-00-00 00:00:00'" );
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute changes made in WordPress 2.8.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*/
|
||||
function upgrade_280() {
|
||||
global $wp_current_db_version;
|
||||
|
||||
if ( $wp_current_db_version < 10360 )
|
||||
populate_roles_280();
|
||||
}
|
||||
|
||||
|
||||
// The functions we use to actually do stuff
|
||||
|
||||
|
||||
Reference in New Issue
Block a user