From 805d6fe59b8ad9b46b79509e95c81f1debc943f9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 9 Feb 2014 21:43:12 +0000 Subject: [PATCH] Update comment about structure of items in $menu global. props kitchin. fixes #26635. Built from https://develop.svn.wordpress.org/trunk@27151 git-svn-id: http://core.svn.wordpress.org/trunk@27018 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/menu-header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/menu-header.php b/wp-admin/menu-header.php index a32f3a514d..e279c8f8f5 100644 --- a/wp-admin/menu-header.php +++ b/wp-admin/menu-header.php @@ -47,7 +47,7 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) { global $self, $parent_file, $submenu_file, $plugin_page, $typenow; $first = true; - // 0 = name, 1 = capability, 2 = file, 3 = class, 4 = id, 5 = icon src + // 0 = menu_title, 1 = capability, 2 = menu_slug, 3 = page_title, 4 = classes, 5 = hookname, 6 = icon_url foreach ( $menu as $key => $item ) { $admin_is_parent = false; $class = array();