WordPress.org

Make WordPress Core

Ticket #16080: admin-bar-class-php4-compat.diff

File admin-bar-class-php4-compat.diff, 520 bytes (added by westi, 7 years ago)

PHP4 compat code

  • public/wp-includes/class-wp-admin-bar.php

     
    157157        }
    158158
    159159        function add_node( $parent_id, &$menu, $child ) {
    160                 foreach( $menu as $id => &$menu_item ) {
     160                foreach( $menu as $id => $menu_item ) {
    161161                        if ( $parent_id == $id ) {
    162162                                $menu->{$parent_id}['children']->{$child['id']} = $child;
    163163                                $child = null;