Edit File by line
/home/barbar84/www/wp-admin/network
File: menu.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Build Network Administration Menu.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
* @subpackage Multisite
[5] Fix | Delete
* @since 3.1.0
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
/* translators: Network menu item. */
[9] Fix | Delete
$menu[2] = array( __( 'Dashboard' ), 'manage_network', 'index.php', '', 'menu-top menu-top-first menu-icon-dashboard', 'menu-dashboard', 'dashicons-dashboard' );
[10] Fix | Delete
[11] Fix | Delete
$submenu['index.php'][0] = array( __( 'Home' ), 'read', 'index.php' );
[12] Fix | Delete
[13] Fix | Delete
if ( current_user_can( 'update_core' ) ) {
[14] Fix | Delete
$cap = 'update_core';
[15] Fix | Delete
} elseif ( current_user_can( 'update_plugins' ) ) {
[16] Fix | Delete
$cap = 'update_plugins';
[17] Fix | Delete
} elseif ( current_user_can( 'update_themes' ) ) {
[18] Fix | Delete
$cap = 'update_themes';
[19] Fix | Delete
} else {
[20] Fix | Delete
$cap = 'update_languages';
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
$update_data = wp_get_update_data();
[24] Fix | Delete
if ( $update_data['counts']['total'] ) {
[25] Fix | Delete
$submenu['index.php'][10] = array(
[26] Fix | Delete
sprintf(
[27] Fix | Delete
/* translators: %s: Number of available updates. */
[28] Fix | Delete
__( 'Updates %s' ),
[29] Fix | Delete
sprintf(
[30] Fix | Delete
'<span class="update-plugins count-%s"><span class="update-count">%s</span></span>',
[31] Fix | Delete
$update_data['counts']['total'],
[32] Fix | Delete
number_format_i18n( $update_data['counts']['total'] )
[33] Fix | Delete
)
[34] Fix | Delete
),
[35] Fix | Delete
$cap,
[36] Fix | Delete
'update-core.php',
[37] Fix | Delete
);
[38] Fix | Delete
} else {
[39] Fix | Delete
$submenu['index.php'][10] = array( __( 'Updates' ), $cap, 'update-core.php' );
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
unset( $cap );
[43] Fix | Delete
[44] Fix | Delete
$submenu['index.php'][15] = array( __( 'Upgrade Network' ), 'upgrade_network', 'upgrade.php' );
[45] Fix | Delete
[46] Fix | Delete
$menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' );
[47] Fix | Delete
[48] Fix | Delete
/* translators: Sites menu item. */
[49] Fix | Delete
$menu[5] = array( __( 'Sites' ), 'manage_sites', 'sites.php', '', 'menu-top menu-icon-site', 'menu-site', 'dashicons-admin-multisite' );
[50] Fix | Delete
$submenu['sites.php'][5] = array( __( 'All Sites' ), 'manage_sites', 'sites.php' );
[51] Fix | Delete
$submenu['sites.php'][10] = array( _x( 'Add New', 'site' ), 'create_sites', 'site-new.php' );
[52] Fix | Delete
[53] Fix | Delete
$menu[10] = array( __( 'Users' ), 'manage_network_users', 'users.php', '', 'menu-top menu-icon-users', 'menu-users', 'dashicons-admin-users' );
[54] Fix | Delete
$submenu['users.php'][5] = array( __( 'All Users' ), 'manage_network_users', 'users.php' );
[55] Fix | Delete
$submenu['users.php'][10] = array( _x( 'Add New', 'user' ), 'create_users', 'user-new.php' );
[56] Fix | Delete
[57] Fix | Delete
if ( current_user_can( 'update_themes' ) && $update_data['counts']['themes'] ) {
[58] Fix | Delete
$menu[15] = array(
[59] Fix | Delete
sprintf(
[60] Fix | Delete
/* translators: %s: Number of available theme updates. */
[61] Fix | Delete
__( 'Themes %s' ),
[62] Fix | Delete
sprintf(
[63] Fix | Delete
'<span class="update-plugins count-%s"><span class="theme-count">%s</span></span>',
[64] Fix | Delete
$update_data['counts']['themes'],
[65] Fix | Delete
number_format_i18n( $update_data['counts']['themes'] )
[66] Fix | Delete
)
[67] Fix | Delete
),
[68] Fix | Delete
'manage_network_themes',
[69] Fix | Delete
'themes.php',
[70] Fix | Delete
'',
[71] Fix | Delete
'menu-top menu-icon-appearance',
[72] Fix | Delete
'menu-appearance',
[73] Fix | Delete
'dashicons-admin-appearance',
[74] Fix | Delete
);
[75] Fix | Delete
} else {
[76] Fix | Delete
$menu[15] = array( __( 'Themes' ), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' );
[77] Fix | Delete
}
[78] Fix | Delete
$submenu['themes.php'][5] = array( __( 'Installed Themes' ), 'manage_network_themes', 'themes.php' );
[79] Fix | Delete
$submenu['themes.php'][10] = array( _x( 'Add New', 'theme' ), 'install_themes', 'theme-install.php' );
[80] Fix | Delete
$submenu['themes.php'][15] = array( __( 'Theme Editor' ), 'edit_themes', 'theme-editor.php' );
[81] Fix | Delete
[82] Fix | Delete
if ( current_user_can( 'update_plugins' ) && $update_data['counts']['plugins'] ) {
[83] Fix | Delete
$menu[20] = array(
[84] Fix | Delete
sprintf(
[85] Fix | Delete
/* translators: %s: Number of available plugin updates. */
[86] Fix | Delete
__( 'Plugins %s' ),
[87] Fix | Delete
sprintf(
[88] Fix | Delete
'<span class="update-plugins count-%s"><span class="plugin-count">%s</span></span>',
[89] Fix | Delete
$update_data['counts']['plugins'],
[90] Fix | Delete
number_format_i18n( $update_data['counts']['plugins'] )
[91] Fix | Delete
)
[92] Fix | Delete
),
[93] Fix | Delete
'manage_network_plugins',
[94] Fix | Delete
'plugins.php',
[95] Fix | Delete
'',
[96] Fix | Delete
'menu-top menu-icon-plugins',
[97] Fix | Delete
'menu-plugins',
[98] Fix | Delete
'dashicons-admin-plugins',
[99] Fix | Delete
);
[100] Fix | Delete
} else {
[101] Fix | Delete
$menu[20] = array( __( 'Plugins' ), 'manage_network_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' );
[102] Fix | Delete
}
[103] Fix | Delete
$submenu['plugins.php'][5] = array( __( 'Installed Plugins' ), 'manage_network_plugins', 'plugins.php' );
[104] Fix | Delete
$submenu['plugins.php'][10] = array( _x( 'Add New', 'plugin' ), 'install_plugins', 'plugin-install.php' );
[105] Fix | Delete
$submenu['plugins.php'][15] = array( __( 'Plugin Editor' ), 'edit_plugins', 'plugin-editor.php' );
[106] Fix | Delete
[107] Fix | Delete
$menu[25] = array( __( 'Settings' ), 'manage_network_options', 'settings.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'dashicons-admin-settings' );
[108] Fix | Delete
if ( defined( 'MULTISITE' ) && defined( 'WP_ALLOW_MULTISITE' ) && WP_ALLOW_MULTISITE ) {
[109] Fix | Delete
$submenu['settings.php'][5] = array( __( 'Network Settings' ), 'manage_network_options', 'settings.php' );
[110] Fix | Delete
$submenu['settings.php'][10] = array( __( 'Network Setup' ), 'setup_network', 'setup.php' );
[111] Fix | Delete
}
[112] Fix | Delete
unset( $update_data );
[113] Fix | Delete
[114] Fix | Delete
$menu[99] = array( '', 'exist', 'separator-last', '', 'wp-menu-separator' );
[115] Fix | Delete
[116] Fix | Delete
require_once ABSPATH . 'wp-admin/includes/menu.php';
[117] Fix | Delete
[118] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function