WordPress.org

Make WordPress Core

Ticket #16005: 16005.3.diff

File 16005.3.diff, 637 bytes (added by sorich87, 11 years ago)

oops! error in the previous patch

  • class-wp-admin-bar.php

     
    113113
    114114        /* Helpers */
    115115        function recursive_render( $id, &$menu_item ) { ?>
    116                 <?php $menuclass = ( ! empty( $menu_item['children'] ) ) ? 'menupop ' : ''; ?>
     116                <?php
     117                if( null == $menu_item )
     118                        return;
    117119
     120                $menuclass = ( ! empty( $menu_item['children'] ) ) ? 'menupop ' : '';
     121                ?>
     122
    118123                <li class="<?php echo $menuclass . "ab-$id" ?><?php
    119124                        if ( ! empty( $menu_item['meta']['class'] ) ) :
    120125                                echo ' ' . $menu_item['meta']['class'];