WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/18/2011 06:16:57 AM (9 years ago)
Author:
nacin
Message:

Some more class instantiations. props eko-fr, fixes #18049.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-admin-bar.php

    r18488 r18563  
    165165        foreach( $menu as $id => $menu_item ) {
    166166            if ( $parent_id == $id ) {
     167                if ( ! isset( $menu->{$parent_id}['children'] ) )
     168                    $menu->{$parent_id}['children'] = new stdClass;
    167169                $menu->{$parent_id}['children']->{$child['id']} = $child;
    168170                $child = null;
Note: See TracChangeset for help on using the changeset viewer.