编辑:menu.php
<?php /** * Build Network Administration Menu. * * @package WordPress * @subpackage Multisite * @since 3.1.0 */ // Don't load directly. if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } /* translators: Network menu item. */ $menu[2] = array( __( 'Dashboard' ), 'manage_network', 'index.php', '', 'menu-top menu-top-first menu-icon-dashboard', 'menu-dashboard', 'dashicons-dashboard' ); $submenu['index.php'][0] = array( __( 'Home' ), 'read', 'index.php' ); if ( current_user_can( 'update_core' ) ) { $cap = 'update_core'; } elseif ( current_user_can( 'update_plugins' ) ) { $cap = 'update_plugins'; } elseif ( current_user_can( 'update_themes' ) ) { $cap = 'update_themes'; } else { $cap = 'update_languages'; } $update_data = wp_get_update_data(); if ( $update_data['counts']['total'] ) { $submenu['index.php'][10] = array( sprintf( /* translators: %s: Number of available updates. */ __( 'Updates %s' ), sprintf( '<span class="update-plugins count-%s"><span class="update-count">%s</span></span>', $update_data['counts']['total'], number_format_i18n( $update_data['counts']['total'] ) ) ), $cap, 'update-core.php', ); } else { $submenu['index.php'][10] = array( __( 'Updates' ), $cap, 'update-core.php' ); } unset( $cap ); $submenu['index.php'][15] = array( __( 'Upgrade Network' ), 'upgrade_network', 'upgrade.php' ); $menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' ); /* translators: Sites menu item. */ $menu[5] = array( __( 'Sites' ), 'manage_sites', 'sites.php', '', 'menu-top menu-icon-site', 'menu-site', 'dashicons-admin-multisite' ); $submenu['sites.php'][5] = array( __( 'All Sites' ), 'manage_sites', 'sites.php' ); $submenu['sites.php'][10] = array( __( 'Add Site' ), 'create_sites', 'site-new.php' ); $menu[10] = array( __( 'Users' ), 'manage_network_users', 'users.php', '', 'menu-top menu-icon-users', 'menu-users', 'dashicons-admin-users' ); $submenu['users.php'][5] = array( __( 'All Users' ), 'manage_network_users', 'users.php' ); $submenu['users.php'][10] = array( __( 'Add User' ), 'create_users', 'user-new.php' ); if ( current_user_can( 'update_themes' ) && $update_data['counts']['themes'] ) { $menu[15] = array( sprintf( /* translators: %s: Number of available theme updates. */ __( 'Themes %s' ), sprintf( '<span class="update-plugins count-%s"><span class="theme-count">%s</span></span>', $update_data['counts']['themes'], number_format_i18n( $update_data['counts']['themes'] ) ) ), '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' ); } $submenu['themes.php'][5] = array( __( 'Installed Themes' ), 'manage_network_themes', 'themes.php' ); $submenu['themes.php'][10] = array( __( 'Add Theme' ), 'install_themes', 'theme-install.php' ); $submenu['themes.php'][15] = array( __( 'Theme File Editor' ), 'edit_themes', 'theme-editor.php' ); if ( current_user_can( 'update_plugins' ) && $update_data['counts']['plugins'] ) { $menu[20] = array( sprintf( /* translators: %s: Number of available plugin updates. */ __( 'Plugins %s' ), sprintf( '<span class="update-plugins count-%s"><span class="plugin-count">%s</span></span>', $update_data['counts']['plugins'], number_format_i18n( $update_data['counts']['plugins'] ) ) ), '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' ); } $submenu['plugins.php'][5] = array( __( 'Installed Plugins' ), 'manage_network_plugins', 'plugins.php' ); $submenu['plugins.php'][10] = array( __( 'Add Plugin' ), 'install_plugins', 'plugin-install.php' ); $submenu['plugins.php'][15] = array( __( 'Plugin File Editor' ), 'edit_plugins', 'plugin-editor.php' ); $menu[25] = array( __( 'Settings' ), 'manage_network_options', 'settings.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'dashicons-admin-settings' ); if ( defined( 'MULTISITE' ) && defined( 'WP_ALLOW_MULTISITE' ) && WP_ALLOW_MULTISITE ) { $submenu['settings.php'][5] = array( __( 'Network Settings' ), 'manage_network_options', 'settings.php' ); $submenu['settings.php'][10] = array( __( 'Network Setup' ), 'setup_network', 'setup.php' ); } unset( $update_data ); $menu[99] = array( '', 'exist', 'separator-last', '', 'wp-menu-separator' ); require_once ABSPATH . 'wp-admin/includes/menu.php';
保存文件
位置:
home
/
robertofarias
/
public_html
/
wp-admin
/
network
批量上传
创建
创建
批量权限
批量删除
名称
权限
大小
修改时间
操作
↑ 返回上级
-
-
-
-
about.php
-rw-r--r--
245 B
2020-02-06 06:33
编辑
下载
权限
删除
重命名
admin.php
-rw-r--r--
1 KB
2020-02-06 06:33
编辑
下载
权限
删除
重命名
contribute.php
-rw-r--r--
255 B
2023-08-09 11:43
编辑
下载
权限
删除
重命名
credits.php
-rw-r--r--
249 B
2020-02-06 06:33
编辑
下载
权限
删除
重命名
edit.php
-rw-r--r--
908 B
2020-05-26 09:37
编辑
下载
权限
删除
重命名
error_log
-rw-r--r--
13.02 KB
2026-04-30 22:42
编辑
下载
权限
删除
重命名
freedoms.php
-rw-r--r--
251 B
2020-02-06 06:33
编辑
下载
权限
删除
重命名
index.php
-rw-r--r--
2.84 KB
2024-07-17 11:51
编辑
下载
权限
删除
重命名
menu.php
-rw-r--r--
4.69 KB
2025-04-16 11:06
编辑
下载
权限
删除
重命名
plugin-editor.php
-rw-r--r--
266 B
2021-12-21 20:06
编辑
下载
权限
删除
重命名
plugin-install.php
-rw-r--r--
377 B
2020-05-24 09:17
编辑
下载
权限
删除
重命名
privacy.php
-rw-r--r--
249 B
2020-02-06 06:33
编辑
下载
权限
删除
重命名
profile.php
-rw-r--r--
254 B
2020-02-06 06:33
编辑
下载
权限
删除
重命名
settings.php
-rw-r--r--
21.51 KB
2025-12-04 05:41
编辑
下载
权限
删除
重命名
setup.php
-rw-r--r--
247 B
2020-02-06 06:33
编辑
下载
权限
删除
重命名
site-info.php
-rw-r--r--
7.59 KB
2025-12-04 05:41
编辑
下载
权限
删除
重命名
site-new.php
-rw-r--r--
9.38 KB
2025-12-04 05:41
编辑
下载
权限
删除
重命名
site-settings.php
-rw-r--r--
5.47 KB
2025-12-04 05:41
编辑
下载
权限
删除
重命名
site-themes.php
-rw-r--r--
6.71 KB
2024-11-13 13:01
编辑
下载
权限
删除
重命名
site-users.php
-rw-r--r--
11.53 KB
2025-12-04 05:41
编辑
下载
权限
删除
重命名
sites.php
-rw-r--r--
14.2 KB
2025-12-04 05:41
编辑
下载
权限
删除
重命名
theme-editor.php
-rw-r--r--
264 B
2021-12-21 20:06
编辑
下载
权限
删除
重命名
theme-install.php
-rw-r--r--
374 B
2020-05-24 09:17
编辑
下载
权限
删除
重命名
themes.php
-rw-r--r--
15.61 KB
2025-04-16 11:06
编辑
下载
权限
删除
重命名
update-core.php
-rw-r--r--
253 B
2020-02-06 06:33
编辑
下载
权限
删除
重命名
update.php
-rw-r--r--
450 B
2020-04-05 03:02
编辑
下载
权限
删除
重命名
upgrade.php
-rw-r--r--
4.83 KB
2025-12-04 05:41
编辑
下载
权限
删除
重命名
user-new.php
-rw-r--r--
5.11 KB
2025-04-16 11:06
编辑
下载
权限
删除
重命名
users.php
-rw-r--r--
9.27 KB
2025-04-16 11:06
编辑
下载
权限
删除
重命名