Make WordPress Core

Changeset 19365


Ignore:
Timestamp:
11/20/2011 06:39:54 PM (13 years ago)
Author:
nacin
Message:

Handle 'appearance' as a admin bar menu parent in a backwards compatible way. fixes #19245.

File:
1 edited

Legend:

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

    r19328 r19365  
    113113
    114114    public function render() {
     115
     116        $back_compat_parents = array(
     117            'appearance' => 'site-name',
     118        );
     119
    115120        // Link nodes to parents.
    116121        foreach ( $this->nodes as $node ) {
     122
     123            if ( isset( $back_compat_parents[ $node->parent ] ) )
     124                $node->parent = $back_compat_parents[ $node->parent ];
    117125
    118126            // Handle root menu items
Note: See TracChangeset for help on using the changeset viewer.