Make WordPress Core

Changeset 28778


Ignore:
Timestamp:
06/19/2014 02:17:08 AM (8 years ago)
Author:
helen
Message:

Restore the ability to pass classes to admin menu submenu items, important for the Customize link. Accidentally left out in [24048]. fixes #28583.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/menu-header.php

    r27425 r28778  
    136136
    137137            $first = true;
     138
     139            // 0 = menu_title, 1 = capability, 2 = menu_slug, 3 = classes
    138140            foreach ( $submenu_items as $sub_key => $sub_item ) {
    139141                if ( ! current_user_can( $sub_item[1] ) )
     
    166168                }
    167169
     170                if ( ! empty( $sub_item[3] ) ) {
     171                    $class[] = $sub_item[3];
     172                }
     173
    168174                $class = $class ? ' class="' . join( ' ', $class ) . '"' : '';
    169175
Note: See TracChangeset for help on using the changeset viewer.