WordPress.org

Make WordPress Core

Changeset 14559


Ignore:
Timestamp:
05/11/2010 02:39:00 PM (8 years ago)
Author:
ryan
Message:

Unset some vars when done with them to reduce peak memory usage. see #12734

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/nav-menu-template.php

    r14558 r14559  
    242242    foreach ( (array) $menu_items as $key => $menu_item )
    243243        $sorted_menu_items[$menu_item->menu_order] = $menu_item;
     244    unset($menu_items);
    244245
    245246    $items .= walk_nav_menu_tree( $sorted_menu_items, $args->depth, $args );
     247    unset($sorted_menu_items);
    246248
    247249    // Attributes
     
    259261        $nav_menu .= $items;
    260262    }
     263    unset($items);
    261264
    262265    $nav_menu .= '</ul>';
Note: See TracChangeset for help on using the changeset viewer.