Make WordPress Core

Changeset 29326


Ignore:
Timestamp:
07/29/2014 04:07:59 PM (10 years ago)
Author:
SergeyBiryukov
Message:

In add_submenu_page(), avoid inadvertently copying classes of a menu item to the first submenu item.

fixes #28936.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin.php

    r29206 r29326  
    11291129        foreach ( (array)$menu as $parent_menu ) {
    11301130            if ( $parent_menu[2] == $parent_slug && current_user_can( $parent_menu[1] ) )
    1131                 $submenu[$parent_slug][] = $parent_menu;
     1131                $submenu[$parent_slug][] = array_slice( $parent_menu, 0, 4 );
    11321132        }
    11331133    }
Note: See TracChangeset for help on using the changeset viewer.