Fully implement the 'delete_themes' capability. See also r13547
git-svn-id: http://svn.automattic.com/wordpress/trunk@14984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -612,6 +612,7 @@ function populate_roles_300() {
|
||||
$role->add_cap( 'add_users' );
|
||||
$role->add_cap( 'promote_users' );
|
||||
$role->add_cap( 'edit_theme_options' );
|
||||
$role->add_cap( 'delete_themes' );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -440,7 +440,7 @@ function upgrade_all() {
|
||||
if ( $wp_current_db_version < 11958 )
|
||||
upgrade_290();
|
||||
|
||||
if ( $wp_current_db_version < 14726 )
|
||||
if ( $wp_current_db_version < 14984 )
|
||||
upgrade_300();
|
||||
|
||||
maybe_disable_automattic_widgets();
|
||||
@@ -1108,11 +1108,11 @@ function upgrade_290() {
|
||||
function upgrade_300() {
|
||||
global $wp_current_db_version, $wpdb;
|
||||
|
||||
if ( $wp_current_db_version < 14139 ) {
|
||||
if ( $wp_current_db_version < 14984 )
|
||||
populate_roles_300();
|
||||
if ( is_multisite() && is_main_site() && ! defined( 'MULTISITE' ) && get_site_option( 'siteurl' ) === false )
|
||||
add_site_option( 'siteurl', '' );
|
||||
}
|
||||
|
||||
if ( $wp_current_db_version < 14139 && is_multisite() && is_main_site() && ! defined( 'MULTISITE' ) && get_site_option( 'siteurl' ) === false )
|
||||
add_site_option( 'siteurl', '' );
|
||||
|
||||
// 3.0-alpha nav menu postmeta changes. can be removed before release. // r13802
|
||||
if ( $wp_current_db_version >= 13226 && $wp_current_db_version < 13974 )
|
||||
|
||||
Reference in New Issue
Block a user