Make WordPress Core

Changeset 9685


Ignore:
Timestamp:
11/14/2008 06:10:58 PM (16 years ago)
Author:
ryan
Message:

Walker fix for when non elements are top-level. Props hailin. fixes #8150

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r9515 r9685  
    912912        if ( empty($top_level_elements) ) {
    913913
    914             $root = $elements[0];
     914            $first = array_slice( $elements, 0, 1 );
     915            $root = $first[0];
    915916
    916917            $top_level_elements = array();
Note: See TracChangeset for help on using the changeset viewer.