X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..16e7b37c7914d753890c1a05a9335f3b43751eb8:/wp-admin/menu.php diff --git a/wp-admin/menu.php b/wp-admin/menu.php index 64f80190..2fd146bd 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -38,7 +38,7 @@ if ( ! is_multisite() ) { $cap = 'update_plugins'; else $cap = 'update_themes'; - $submenu[ 'index.php' ][10] = array( sprintf( __('Updates %s'), "" . number_format_i18n($update_data['counts']['total']) . "" ), $cap, 'update-core.php'); + $submenu[ 'index.php' ][10] = array( sprintf( __('Updates %s'), "" . number_format_i18n($update_data['counts']['total']) . "" ), $cap, 'update-core.php'); unset( $cap ); } @@ -182,7 +182,10 @@ if ( ! is_multisite() ) { add_action('admin_menu', '_add_themes_utility_last', 101); } /** + * Adds the (theme) 'Editor' link to the bottom of the Appearance menu. * + * @access private + * @since 3.0.0 */ function _add_themes_utility_last() { // Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook @@ -262,7 +265,7 @@ $_wp_real_parent_file['page-new.php'] = 'edit.php?post_type=page'; $_wp_real_parent_file['wpmu-admin.php'] = 'tools.php'; $_wp_real_parent_file['ms-admin.php'] = 'tools.php'; -// ensure we're backwards compatible +// Ensure backward compatibility. $compat = array( 'index' => 'dashboard', 'edit' => 'posts',