mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
PHP4 compat. Props SergeyBiryukov, westi. see #16080
git-svn-id: https://develop.svn.wordpress.org/trunk@17211 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -157,7 +157,7 @@ class WP_Admin_Bar {
|
||||
}
|
||||
|
||||
function add_node( $parent_id, &$menu, $child ) {
|
||||
foreach( $menu as $id => &$menu_item ) {
|
||||
foreach( $menu as $id => $menu_item ) {
|
||||
if ( $parent_id == $id ) {
|
||||
$menu->{$parent_id}['children']->{$child['id']} = $child;
|
||||
$child = null;
|
||||
|
||||
Reference in New Issue
Block a user