Make WordPress Core

Ticket #34446: 34446.patch

File 34446.patch, 667 bytes (added by sebastian.pisula, 9 years ago)
  • wp-includes/class-wp-walker.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    215215                $top_level_elements = array();
    216216                $children_elements  = array();
    217217                foreach ( $elements as $e) {
    218                         if ( 0 == $e->$parent_field )
     218                        if ( ! isset( $e->$parent_field ) || empty( $e->$parent_field ) )
    219219                                $top_level_elements[] = $e;
    220220                        else
    221221                                $children_elements[ $e->$parent_field ][] = $e;