Un-indent after [21198]. see #19824.
git-svn-id: https://develop.svn.wordpress.org/trunk@21200 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
493a3874dd
commit
c5d586e5bf
@ -149,23 +149,23 @@ function _add_themes_utility_last() {
|
||||
add_submenu_page('themes.php', _x('Editor', 'theme editor'), _x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php');
|
||||
}
|
||||
|
||||
$count = '';
|
||||
if ( ! is_multisite() && current_user_can( 'update_plugins' ) ) {
|
||||
if ( ! isset( $update_data ) )
|
||||
$update_data = wp_get_update_data();
|
||||
$count = "<span class='update-plugins count-{$update_data['counts']['plugins']}'><span class='plugin-count'>" . number_format_i18n($update_data['counts']['plugins']) . "</span></span>";
|
||||
$count = '';
|
||||
if ( ! is_multisite() && current_user_can( 'update_plugins' ) ) {
|
||||
if ( ! isset( $update_data ) )
|
||||
$update_data = wp_get_update_data();
|
||||
$count = "<span class='update-plugins count-{$update_data['counts']['plugins']}'><span class='plugin-count'>" . number_format_i18n($update_data['counts']['plugins']) . "</span></span>";
|
||||
}
|
||||
|
||||
$menu[65] = array( sprintf( __('Plugins %s'), $count ), 'activate_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'div' );
|
||||
|
||||
$submenu['plugins.php'][5] = array( __('Installed Plugins'), 'activate_plugins', 'plugins.php' );
|
||||
|
||||
if ( ! is_multisite() ) {
|
||||
/* translators: add new plugin */
|
||||
$submenu['plugins.php'][10] = array( _x('Add New', 'plugin'), 'install_plugins', 'plugin-install.php' );
|
||||
$submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' );
|
||||
}
|
||||
|
||||
$menu[65] = array( sprintf( __('Plugins %s'), $count ), 'activate_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'div' );
|
||||
|
||||
$submenu['plugins.php'][5] = array( __('Installed Plugins'), 'activate_plugins', 'plugins.php' );
|
||||
|
||||
if ( ! is_multisite() ) {
|
||||
/* translators: add new plugin */
|
||||
$submenu['plugins.php'][10] = array( _x('Add New', 'plugin'), 'install_plugins', 'plugin-install.php' );
|
||||
$submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' );
|
||||
}
|
||||
|
||||
unset( $update_data );
|
||||
|
||||
if ( current_user_can('list_users') )
|
||||
|
Loading…
Reference in New Issue
Block a user