Archived
Updates
This commit is contained in:
1 parent
70d2335bba
commit
7428b67da5
1086 files changed
+94145
-59082
No files matched your search
@@ -23,7 +23,7 @@ $submenu['users.php'][10] = array( _x('Add New', 'user'), 'create_users', 'user
|
||||
|
||||
$update_data = wp_get_update_data();
|
||||
|
||||
if ( $update_data['counts']['themes'] ) {
|
||||
if ( current_user_can( 'update_themes' ) && $update_data['counts']['themes'] ) {
|
||||
$menu[15] = array(sprintf( __( 'Themes %s' ), "<span class='update-plugins count-{$update_data['counts']['themes']}'><span class='theme-count'>" . number_format_i18n( $update_data['counts']['themes'] ) . "</span></span>" ), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' );
|
||||
} else {
|
||||
$menu[15] = array( __( 'Themes' ), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' );
|
||||
@@ -32,7 +32,7 @@ $submenu['themes.php'][5] = array( __('Installed Themes'), 'manage_network_them
|
||||
$submenu['themes.php'][10] = array( _x('Add New', 'theme'), 'install_themes', 'theme-install.php' );
|
||||
$submenu['themes.php'][15] = array( _x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php' );
|
||||
|
||||
if ( current_user_can( 'update_plugins' ) ) {
|
||||
if ( current_user_can( 'update_plugins' ) && $update_data['counts']['plugins'] ) {
|
||||
$menu[20] = array( sprintf( __( 'Plugins %s' ), "<span class='update-plugins count-{$update_data['counts']['plugins']}'><span class='plugin-count'>" . number_format_i18n( $update_data['counts']['plugins'] ) . "</span></span>" ), 'manage_network_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins');
|
||||
} else {
|
||||
$menu[20] = array( __('Plugins'), 'manage_network_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' );
|
||||
|
||||
Reference in new issue
Block a user