Edit File by line
/home/barbar84/public_h.../wp-admin
File: menu.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Build Administration Menu.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
* @subpackage Administration
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
/**
[8] Fix | Delete
* Constructs the admin menu.
[9] Fix | Delete
*
[10] Fix | Delete
* The elements in the array are:
[11] Fix | Delete
* 0: Menu item name.
[12] Fix | Delete
* 1: Minimum level or capability required.
[13] Fix | Delete
* 2: The URL of the item's file.
[14] Fix | Delete
* 3: Page title.
[15] Fix | Delete
* 4: Classes.
[16] Fix | Delete
* 5: ID.
[17] Fix | Delete
* 6: Icon for top level menu.
[18] Fix | Delete
*
[19] Fix | Delete
* @global array $menu
[20] Fix | Delete
*/
[21] Fix | Delete
[22] Fix | Delete
$menu[2] = array( __( 'Dashboard' ), 'read', 'index.php', '', 'menu-top menu-top-first menu-icon-dashboard', 'menu-dashboard', 'dashicons-dashboard' );
[23] Fix | Delete
[24] Fix | Delete
$submenu['index.php'][0] = array( __( 'Home' ), 'read', 'index.php' );
[25] Fix | Delete
[26] Fix | Delete
if ( is_multisite() ) {
[27] Fix | Delete
$submenu['index.php'][5] = array( __( 'My Sites' ), 'read', 'my-sites.php' );
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
if ( ! is_multisite() || current_user_can( 'update_core' ) ) {
[31] Fix | Delete
$update_data = wp_get_update_data();
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
if ( ! is_multisite() ) {
[35] Fix | Delete
if ( current_user_can( 'update_core' ) ) {
[36] Fix | Delete
$cap = 'update_core';
[37] Fix | Delete
} elseif ( current_user_can( 'update_plugins' ) ) {
[38] Fix | Delete
$cap = 'update_plugins';
[39] Fix | Delete
} elseif ( current_user_can( 'update_themes' ) ) {
[40] Fix | Delete
$cap = 'update_themes';
[41] Fix | Delete
} else {
[42] Fix | Delete
$cap = 'update_languages';
[43] Fix | Delete
}
[44] Fix | Delete
$submenu['index.php'][10] = array(
[45] Fix | Delete
sprintf(
[46] Fix | Delete
/* translators: %s: Number of pending updates. */
[47] Fix | Delete
__( 'Updates %s' ),
[48] Fix | Delete
sprintf(
[49] Fix | Delete
'<span class="update-plugins count-%s"><span class="update-count">%s</span></span>',
[50] Fix | Delete
$update_data['counts']['total'],
[51] Fix | Delete
number_format_i18n( $update_data['counts']['total'] )
[52] Fix | Delete
)
[53] Fix | Delete
),
[54] Fix | Delete
$cap,
[55] Fix | Delete
'update-core.php',
[56] Fix | Delete
);
[57] Fix | Delete
unset( $cap );
[58] Fix | Delete
}
[59] Fix | Delete
[60] Fix | Delete
$menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' );
[61] Fix | Delete
[62] Fix | Delete
// $menu[5] = Posts.
[63] Fix | Delete
[64] Fix | Delete
$menu[10] = array( __( 'Media' ), 'upload_files', 'upload.php', '', 'menu-top menu-icon-media', 'menu-media', 'dashicons-admin-media' );
[65] Fix | Delete
$submenu['upload.php'][5] = array( __( 'Library' ), 'upload_files', 'upload.php' );
[66] Fix | Delete
/* translators: Add new file. */
[67] Fix | Delete
$submenu['upload.php'][10] = array( _x( 'Add New', 'file' ), 'upload_files', 'media-new.php' );
[68] Fix | Delete
$i = 15;
[69] Fix | Delete
foreach ( get_taxonomies_for_attachments( 'objects' ) as $tax ) {
[70] Fix | Delete
if ( ! $tax->show_ui || ! $tax->show_in_menu ) {
[71] Fix | Delete
continue;
[72] Fix | Delete
}
[73] Fix | Delete
[74] Fix | Delete
$submenu['upload.php'][ $i++ ] = array( esc_attr( $tax->labels->menu_name ), $tax->cap->manage_terms, 'edit-tags.php?taxonomy=' . $tax->name . '&amp;post_type=attachment' );
[75] Fix | Delete
}
[76] Fix | Delete
unset( $tax, $i );
[77] Fix | Delete
[78] Fix | Delete
$menu[15] = array( __( 'Links' ), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'dashicons-admin-links' );
[79] Fix | Delete
$submenu['link-manager.php'][5] = array( _x( 'All Links', 'admin menu' ), 'manage_links', 'link-manager.php' );
[80] Fix | Delete
/* translators: Add new links. */
[81] Fix | Delete
$submenu['link-manager.php'][10] = array( _x( 'Add New', 'link' ), 'manage_links', 'link-add.php' );
[82] Fix | Delete
$submenu['link-manager.php'][15] = array( __( 'Link Categories' ), 'manage_categories', 'edit-tags.php?taxonomy=link_category' );
[83] Fix | Delete
[84] Fix | Delete
// $menu[20] = Pages.
[85] Fix | Delete
[86] Fix | Delete
// Avoid the comment count query for users who cannot edit_posts.
[87] Fix | Delete
if ( current_user_can( 'edit_posts' ) ) {
[88] Fix | Delete
$awaiting_mod = wp_count_comments();
[89] Fix | Delete
$awaiting_mod = $awaiting_mod->moderated;
[90] Fix | Delete
$awaiting_mod_i18n = number_format_i18n( $awaiting_mod );
[91] Fix | Delete
/* translators: %s: Number of comments. */
[92] Fix | Delete
$awaiting_mod_text = sprintf( _n( '%s Comment in moderation', '%s Comments in moderation', $awaiting_mod ), $awaiting_mod_i18n );
[93] Fix | Delete
[94] Fix | Delete
$menu[25] = array(
[95] Fix | Delete
/* translators: %s: Number of comments. */
[96] Fix | Delete
sprintf( __( 'Comments %s' ), '<span class="awaiting-mod count-' . absint( $awaiting_mod ) . '"><span class="pending-count" aria-hidden="true">' . $awaiting_mod_i18n . '</span><span class="comments-in-moderation-text screen-reader-text">' . $awaiting_mod_text . '</span></span>' ),
[97] Fix | Delete
'edit_posts',
[98] Fix | Delete
'edit-comments.php',
[99] Fix | Delete
'',
[100] Fix | Delete
'menu-top menu-icon-comments',
[101] Fix | Delete
'menu-comments',
[102] Fix | Delete
'dashicons-admin-comments',
[103] Fix | Delete
);
[104] Fix | Delete
unset( $awaiting_mod );
[105] Fix | Delete
}
[106] Fix | Delete
[107] Fix | Delete
$submenu['edit-comments.php'][0] = array( __( 'All Comments' ), 'edit_posts', 'edit-comments.php' );
[108] Fix | Delete
[109] Fix | Delete
$_wp_last_object_menu = 25; // The index of the last top-level menu in the object menu group.
[110] Fix | Delete
[111] Fix | Delete
$types = (array) get_post_types(
[112] Fix | Delete
array(
[113] Fix | Delete
'show_ui' => true,
[114] Fix | Delete
'_builtin' => false,
[115] Fix | Delete
'show_in_menu' => true,
[116] Fix | Delete
)
[117] Fix | Delete
);
[118] Fix | Delete
$builtin = array( 'post', 'page' );
[119] Fix | Delete
foreach ( array_merge( $builtin, $types ) as $ptype ) {
[120] Fix | Delete
$ptype_obj = get_post_type_object( $ptype );
[121] Fix | Delete
// Check if it should be a submenu.
[122] Fix | Delete
if ( true !== $ptype_obj->show_in_menu ) {
[123] Fix | Delete
continue;
[124] Fix | Delete
}
[125] Fix | Delete
$ptype_menu_position = is_int( $ptype_obj->menu_position ) ? $ptype_obj->menu_position : ++$_wp_last_object_menu; // If we're to use $_wp_last_object_menu, increment it first.
[126] Fix | Delete
$ptype_for_id = sanitize_html_class( $ptype );
[127] Fix | Delete
[128] Fix | Delete
$menu_icon = 'dashicons-admin-post';
[129] Fix | Delete
if ( is_string( $ptype_obj->menu_icon ) ) {
[130] Fix | Delete
// Special handling for data:image/svg+xml and Dashicons.
[131] Fix | Delete
if ( 0 === strpos( $ptype_obj->menu_icon, 'data:image/svg+xml;base64,' ) || 0 === strpos( $ptype_obj->menu_icon, 'dashicons-' ) ) {
[132] Fix | Delete
$menu_icon = $ptype_obj->menu_icon;
[133] Fix | Delete
} else {
[134] Fix | Delete
$menu_icon = esc_url( $ptype_obj->menu_icon );
[135] Fix | Delete
}
[136] Fix | Delete
} elseif ( in_array( $ptype, $builtin, true ) ) {
[137] Fix | Delete
$menu_icon = 'dashicons-admin-' . $ptype;
[138] Fix | Delete
}
[139] Fix | Delete
[140] Fix | Delete
$menu_class = 'menu-top menu-icon-' . $ptype_for_id;
[141] Fix | Delete
// 'post' special case.
[142] Fix | Delete
if ( 'post' === $ptype ) {
[143] Fix | Delete
$menu_class .= ' open-if-no-js';
[144] Fix | Delete
$ptype_file = 'edit.php';
[145] Fix | Delete
$post_new_file = 'post-new.php';
[146] Fix | Delete
$edit_tags_file = 'edit-tags.php?taxonomy=%s';
[147] Fix | Delete
} else {
[148] Fix | Delete
$ptype_file = "edit.php?post_type=$ptype";
[149] Fix | Delete
$post_new_file = "post-new.php?post_type=$ptype";
[150] Fix | Delete
$edit_tags_file = "edit-tags.php?taxonomy=%s&amp;post_type=$ptype";
[151] Fix | Delete
}
[152] Fix | Delete
[153] Fix | Delete
if ( in_array( $ptype, $builtin, true ) ) {
[154] Fix | Delete
$ptype_menu_id = 'menu-' . $ptype_for_id . 's';
[155] Fix | Delete
} else {
[156] Fix | Delete
$ptype_menu_id = 'menu-posts-' . $ptype_for_id;
[157] Fix | Delete
}
[158] Fix | Delete
/*
[159] Fix | Delete
* If $ptype_menu_position is already populated or will be populated
[160] Fix | Delete
* by a hard-coded value below, increment the position.
[161] Fix | Delete
*/
[162] Fix | Delete
$core_menu_positions = array( 59, 60, 65, 70, 75, 80, 85, 99 );
[163] Fix | Delete
while ( isset( $menu[ $ptype_menu_position ] ) || in_array( $ptype_menu_position, $core_menu_positions, true ) ) {
[164] Fix | Delete
$ptype_menu_position++;
[165] Fix | Delete
}
[166] Fix | Delete
[167] Fix | Delete
$menu[ $ptype_menu_position ] = array( esc_attr( $ptype_obj->labels->menu_name ), $ptype_obj->cap->edit_posts, $ptype_file, '', $menu_class, $ptype_menu_id, $menu_icon );
[168] Fix | Delete
$submenu[ $ptype_file ][5] = array( $ptype_obj->labels->all_items, $ptype_obj->cap->edit_posts, $ptype_file );
[169] Fix | Delete
$submenu[ $ptype_file ][10] = array( $ptype_obj->labels->add_new, $ptype_obj->cap->create_posts, $post_new_file );
[170] Fix | Delete
[171] Fix | Delete
$i = 15;
[172] Fix | Delete
foreach ( get_taxonomies( array(), 'objects' ) as $tax ) {
[173] Fix | Delete
if ( ! $tax->show_ui || ! $tax->show_in_menu || ! in_array( $ptype, (array) $tax->object_type, true ) ) {
[174] Fix | Delete
continue;
[175] Fix | Delete
}
[176] Fix | Delete
[177] Fix | Delete
$submenu[ $ptype_file ][ $i++ ] = array( esc_attr( $tax->labels->menu_name ), $tax->cap->manage_terms, sprintf( $edit_tags_file, $tax->name ) );
[178] Fix | Delete
}
[179] Fix | Delete
}
[180] Fix | Delete
unset( $ptype, $ptype_obj, $ptype_for_id, $ptype_menu_position, $menu_icon, $i, $tax, $post_new_file );
[181] Fix | Delete
[182] Fix | Delete
$menu[59] = array( '', 'read', 'separator2', '', 'wp-menu-separator' );
[183] Fix | Delete
[184] Fix | Delete
$appearance_cap = current_user_can( 'switch_themes' ) ? 'switch_themes' : 'edit_theme_options';
[185] Fix | Delete
[186] Fix | Delete
$menu[60] = array( __( 'Appearance' ), $appearance_cap, 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' );
[187] Fix | Delete
$submenu['themes.php'][5] = array( __( 'Themes' ), $appearance_cap, 'themes.php' );
[188] Fix | Delete
[189] Fix | Delete
$customize_url = add_query_arg( 'return', urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), 'customize.php' );
[190] Fix | Delete
$submenu['themes.php'][6] = array( __( 'Customize' ), 'customize', esc_url( $customize_url ), '', 'hide-if-no-customize' );
[191] Fix | Delete
[192] Fix | Delete
if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) {
[193] Fix | Delete
$submenu['themes.php'][10] = array( __( 'Menus' ), 'edit_theme_options', 'nav-menus.php' );
[194] Fix | Delete
}
[195] Fix | Delete
[196] Fix | Delete
if ( current_theme_supports( 'custom-header' ) && current_user_can( 'customize' ) ) {
[197] Fix | Delete
$customize_header_url = add_query_arg( array( 'autofocus' => array( 'control' => 'header_image' ) ), $customize_url );
[198] Fix | Delete
$submenu['themes.php'][15] = array( __( 'Header' ), $appearance_cap, esc_url( $customize_header_url ), '', 'hide-if-no-customize' );
[199] Fix | Delete
}
[200] Fix | Delete
[201] Fix | Delete
if ( current_theme_supports( 'custom-background' ) && current_user_can( 'customize' ) ) {
[202] Fix | Delete
$customize_background_url = add_query_arg( array( 'autofocus' => array( 'control' => 'background_image' ) ), $customize_url );
[203] Fix | Delete
$submenu['themes.php'][20] = array( __( 'Background' ), $appearance_cap, esc_url( $customize_background_url ), '', 'hide-if-no-customize' );
[204] Fix | Delete
}
[205] Fix | Delete
[206] Fix | Delete
unset( $customize_url );
[207] Fix | Delete
[208] Fix | Delete
unset( $appearance_cap );
[209] Fix | Delete
[210] Fix | Delete
// Add 'Theme Editor' to the bottom of the Appearance menu.
[211] Fix | Delete
if ( ! is_multisite() ) {
[212] Fix | Delete
add_action( 'admin_menu', '_add_themes_utility_last', 101 );
[213] Fix | Delete
}
[214] Fix | Delete
/**
[215] Fix | Delete
* Adds the 'Theme Editor' link to the bottom of the Appearance menu.
[216] Fix | Delete
*
[217] Fix | Delete
* @access private
[218] Fix | Delete
* @since 3.0.0
[219] Fix | Delete
*/
[220] Fix | Delete
function _add_themes_utility_last() {
[221] Fix | Delete
// Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook.
[222] Fix | Delete
add_submenu_page( 'themes.php', __( 'Theme Editor' ), __( 'Theme Editor' ), 'edit_themes', 'theme-editor.php' );
[223] Fix | Delete
}
[224] Fix | Delete
[225] Fix | Delete
$count = '';
[226] Fix | Delete
if ( ! is_multisite() && current_user_can( 'update_plugins' ) ) {
[227] Fix | Delete
if ( ! isset( $update_data ) ) {
[228] Fix | Delete
$update_data = wp_get_update_data();
[229] Fix | Delete
}
[230] Fix | Delete
$count = sprintf(
[231] Fix | Delete
'<span class="update-plugins count-%s"><span class="plugin-count">%s</span></span>',
[232] Fix | Delete
$update_data['counts']['plugins'],
[233] Fix | Delete
number_format_i18n( $update_data['counts']['plugins'] )
[234] Fix | Delete
);
[235] Fix | Delete
}
[236] Fix | Delete
[237] Fix | Delete
/* translators: %s: Number of pending plugin updates. */
[238] Fix | Delete
$menu[65] = array( sprintf( __( 'Plugins %s' ), $count ), 'activate_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' );
[239] Fix | Delete
[240] Fix | Delete
$submenu['plugins.php'][5] = array( __( 'Installed Plugins' ), 'activate_plugins', 'plugins.php' );
[241] Fix | Delete
[242] Fix | Delete
if ( ! is_multisite() ) {
[243] Fix | Delete
/* translators: Add new plugin. */
[244] Fix | Delete
$submenu['plugins.php'][10] = array( _x( 'Add New', 'plugin' ), 'install_plugins', 'plugin-install.php' );
[245] Fix | Delete
$submenu['plugins.php'][15] = array( __( 'Plugin Editor' ), 'edit_plugins', 'plugin-editor.php' );
[246] Fix | Delete
}
[247] Fix | Delete
[248] Fix | Delete
unset( $update_data );
[249] Fix | Delete
[250] Fix | Delete
if ( current_user_can( 'list_users' ) ) {
[251] Fix | Delete
$menu[70] = array( __( 'Users' ), 'list_users', 'users.php', '', 'menu-top menu-icon-users', 'menu-users', 'dashicons-admin-users' );
[252] Fix | Delete
} else {
[253] Fix | Delete
$menu[70] = array( __( 'Profile' ), 'read', 'profile.php', '', 'menu-top menu-icon-users', 'menu-users', 'dashicons-admin-users' );
[254] Fix | Delete
}
[255] Fix | Delete
[256] Fix | Delete
if ( current_user_can( 'list_users' ) ) {
[257] Fix | Delete
$_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php.
[258] Fix | Delete
$submenu['users.php'][5] = array( __( 'All Users' ), 'list_users', 'users.php' );
[259] Fix | Delete
if ( current_user_can( 'create_users' ) ) {
[260] Fix | Delete
$submenu['users.php'][10] = array( _x( 'Add New', 'user' ), 'create_users', 'user-new.php' );
[261] Fix | Delete
} elseif ( is_multisite() ) {
[262] Fix | Delete
$submenu['users.php'][10] = array( _x( 'Add New', 'user' ), 'promote_users', 'user-new.php' );
[263] Fix | Delete
}
[264] Fix | Delete
[265] Fix | Delete
$submenu['users.php'][15] = array( __( 'Profile' ), 'read', 'profile.php' );
[266] Fix | Delete
} else {
[267] Fix | Delete
$_wp_real_parent_file['users.php'] = 'profile.php';
[268] Fix | Delete
$submenu['profile.php'][5] = array( __( 'Profile' ), 'read', 'profile.php' );
[269] Fix | Delete
if ( current_user_can( 'create_users' ) ) {
[270] Fix | Delete
$submenu['profile.php'][10] = array( __( 'Add New User' ), 'create_users', 'user-new.php' );
[271] Fix | Delete
} elseif ( is_multisite() ) {
[272] Fix | Delete
$submenu['profile.php'][10] = array( __( 'Add New User' ), 'promote_users', 'user-new.php' );
[273] Fix | Delete
}
[274] Fix | Delete
}
[275] Fix | Delete
[276] Fix | Delete
$menu[75] = array( __( 'Tools' ), 'edit_posts', 'tools.php', '', 'menu-top menu-icon-tools', 'menu-tools', 'dashicons-admin-tools' );
[277] Fix | Delete
$submenu['tools.php'][5] = array( __( 'Available Tools' ), 'edit_posts', 'tools.php' );
[278] Fix | Delete
$submenu['tools.php'][10] = array( __( 'Import' ), 'import', 'import.php' );
[279] Fix | Delete
$submenu['tools.php'][15] = array( __( 'Export' ), 'export', 'export.php' );
[280] Fix | Delete
$submenu['tools.php'][20] = array( __( 'Site Health' ), 'view_site_health_checks', 'site-health.php' );
[281] Fix | Delete
$submenu['tools.php'][25] = array( __( 'Export Personal Data' ), 'export_others_personal_data', 'export-personal-data.php' );
[282] Fix | Delete
$submenu['tools.php'][30] = array( __( 'Erase Personal Data' ), 'erase_others_personal_data', 'erase-personal-data.php' );
[283] Fix | Delete
if ( is_multisite() && ! is_main_site() ) {
[284] Fix | Delete
$submenu['tools.php'][35] = array( __( 'Delete Site' ), 'delete_site', 'ms-delete-site.php' );
[285] Fix | Delete
}
[286] Fix | Delete
if ( ! is_multisite() && defined( 'WP_ALLOW_MULTISITE' ) && WP_ALLOW_MULTISITE ) {
[287] Fix | Delete
$submenu['tools.php'][50] = array( __( 'Network Setup' ), 'setup_network', 'network.php' );
[288] Fix | Delete
}
[289] Fix | Delete
[290] Fix | Delete
$menu[80] = array( __( 'Settings' ), 'manage_options', 'options-general.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'dashicons-admin-settings' );
[291] Fix | Delete
$submenu['options-general.php'][10] = array( _x( 'General', 'settings screen' ), 'manage_options', 'options-general.php' );
[292] Fix | Delete
$submenu['options-general.php'][15] = array( __( 'Writing' ), 'manage_options', 'options-writing.php' );
[293] Fix | Delete
$submenu['options-general.php'][20] = array( __( 'Reading' ), 'manage_options', 'options-reading.php' );
[294] Fix | Delete
$submenu['options-general.php'][25] = array( __( 'Discussion' ), 'manage_options', 'options-discussion.php' );
[295] Fix | Delete
$submenu['options-general.php'][30] = array( __( 'Media' ), 'manage_options', 'options-media.php' );
[296] Fix | Delete
$submenu['options-general.php'][40] = array( __( 'Permalinks' ), 'manage_options', 'options-permalink.php' );
[297] Fix | Delete
$submenu['options-general.php'][45] = array( __( 'Privacy' ), 'manage_privacy_options', 'options-privacy.php' );
[298] Fix | Delete
[299] Fix | Delete
$_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group.
[300] Fix | Delete
[301] Fix | Delete
$menu[99] = array( '', 'read', 'separator-last', '', 'wp-menu-separator' );
[302] Fix | Delete
[303] Fix | Delete
// Back-compat for old top-levels.
[304] Fix | Delete
$_wp_real_parent_file['post.php'] = 'edit.php';
[305] Fix | Delete
$_wp_real_parent_file['post-new.php'] = 'edit.php';
[306] Fix | Delete
$_wp_real_parent_file['edit-pages.php'] = 'edit.php?post_type=page';
[307] Fix | Delete
$_wp_real_parent_file['page-new.php'] = 'edit.php?post_type=page';
[308] Fix | Delete
$_wp_real_parent_file['wpmu-admin.php'] = 'tools.php';
[309] Fix | Delete
$_wp_real_parent_file['ms-admin.php'] = 'tools.php';
[310] Fix | Delete
[311] Fix | Delete
// Ensure backward compatibility.
[312] Fix | Delete
$compat = array(
[313] Fix | Delete
'index' => 'dashboard',
[314] Fix | Delete
'edit' => 'posts',
[315] Fix | Delete
'post' => 'posts',
[316] Fix | Delete
'upload' => 'media',
[317] Fix | Delete
'link-manager' => 'links',
[318] Fix | Delete
'edit-pages' => 'pages',
[319] Fix | Delete
'page' => 'pages',
[320] Fix | Delete
'edit-comments' => 'comments',
[321] Fix | Delete
'options-general' => 'settings',
[322] Fix | Delete
'themes' => 'appearance',
[323] Fix | Delete
);
[324] Fix | Delete
[325] Fix | Delete
require_once ABSPATH . 'wp-admin/includes/menu.php';
[326] Fix | Delete
[327] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function