Changeset 19596 for trunk/wp-admin/includes/plugin.php
- Timestamp:
- 12/14/2011 05:36:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin.php
r19593 r19596 883 883 $new_menu = array( $menu_title, $capability, $menu_slug, $page_title, 'menu-top ' . $hookname, $hookname, $icon_url ); 884 884 885 if ( null === $position 885 if ( null === $position ) 886 886 $menu[] = $new_menu; 887 887 else … … 989 989 // parent file someone is trying to link back to the parent manually. In 990 990 // this case, don't automatically add a link back to avoid duplication. 991 if (!isset( $submenu[$parent_slug] ) && $menu_slug != $parent_slug 991 if (!isset( $submenu[$parent_slug] ) && $menu_slug != $parent_slug ) { 992 992 foreach ( (array)$menu as $parent_menu ) { 993 993 if ( $parent_menu[2] == $parent_slug && current_user_can( $parent_menu[1] ) )
Note: See TracChangeset
for help on using the changeset viewer.