Changeset 32612 for trunk/src/wp-includes/nav-menu-template.php
- Timestamp:
- 05/26/2015 10:09:26 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/nav-menu-template.php
r31168 r32612 195 195 * 196 196 * @since 3.0.0 197 * 198 * @staticvar array $menu_id_slugs 197 199 * 198 200 * @param array $args { … … 220 222 * Uses printf() format with numbered placeholders. 221 223 * } 222 * @return mixed Menu output if $echo is false, false if there are no items or no menu was found.224 * @return object|false|void Menu output if $echo is false, false if there are no items or no menu was found. 223 225 */ 224 226 function wp_nav_menu( $args = array() ) { … … 430 432 * @access private 431 433 * @since 3.0.0 434 * 435 * @global WP_Query $wp_query 436 * @global WP_Rewrite $wp_rewrite 432 437 * 433 438 * @param array $menu_items The current menu item objects to which to add the class property information. … … 652 657 * @uses Walker_Nav_Menu to create HTML list content. 653 658 * @since 3.0.0 654 * @see Walker::walk() for parameters and return description. 659 * 660 * @param array $items 661 * @param int $depth 662 * @param object $r 663 * @return string 655 664 */ 656 665 function walk_nav_menu_tree( $items, $depth, $r ) { … … 658 667 $args = array( $items, $depth, $r ); 659 668 660 return call_user_func_array( array( $walker, 'walk'), $args );669 return call_user_func_array( array( $walker, 'walk' ), $args ); 661 670 } 662 671 … … 666 675 * @since 3.0.1 667 676 * @access private 677 * 678 * @staticvar array $used_ids 679 * @param string $id 680 * @param object $item 681 * @return string 668 682 */ 669 683 function _nav_menu_item_id_use_once( $id, $item ) { 670 684 static $_used_ids = array(); 671 if ( in_array( $item->ID, $_used_ids ) ) 685 if ( in_array( $item->ID, $_used_ids ) ) { 672 686 return ''; 687 } 673 688 $_used_ids[] = $item->ID; 674 689 return $id;
Note: See TracChangeset
for help on using the changeset viewer.