Make WordPress Core

Changeset 18563


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

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

Location:
trunk
Files:
2 edited

Legend:

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

    r18327 r18563  
    2121        $current_theme = get_current_theme();
    2222    }
     23    $ct = new stdClass;
    2324    $ct->name = $current_theme;
    2425    $ct->title = $themes[$current_theme]['Title'];
  • 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.