Fix name of plugins submenu. Props ocean90. fixes #17530
git-svn-id: http://svn.automattic.com/wordpress/trunk@18035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ae8f4a2a80
commit
3462aab64e
|
@ -180,9 +180,11 @@ if ( ! is_multisite() || is_super_admin() || ! empty( $menu_perms['plugins'] ) )
|
||||||
if ( is_multisite() || ! current_user_can( 'update_plugins' ) )
|
if ( is_multisite() || ! current_user_can( 'update_plugins' ) )
|
||||||
$count = '';
|
$count = '';
|
||||||
$menu[65] = array( sprintf( __('Plugins %s'), $count ), 'activate_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'div' );
|
$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() ) {
|
if ( ! is_multisite() ) {
|
||||||
/* translators: add new plugin */
|
/* translators: add new plugin */
|
||||||
$submenu['plugins.php'][5] = array( __('Installed Plugins'), 'activate_plugins', 'plugins.php' );
|
|
||||||
$submenu['plugins.php'][10] = array( _x('Add New', 'plugin'), 'install_plugins', 'plugin-install.php' );
|
$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' );
|
$submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue