Ticket #25528: nav-menus-hook-docs-diff-rev1.diff
File nav-menus-hook-docs-diff-rev1.diff, 1.2 KB (added by , 11 years ago) |
---|
-
nav-menus.php
602 602 <input type="hidden" name="menu" id="nav-menu-meta-object-id" value="<?php echo esc_attr( $nav_menu_selected_id ); ?>" /> 603 603 </form> 604 604 </div><!-- #menu-locations-wrap --> 605 <?php do_action( 'after_menu_locations_table' ); ?> 605 <?php 606 /** 607 * Fires after the menu locations table. 608 * 609 * @since 3.6.0 610 */ 611 do_action( 'after_menu_locations_table' ); 612 ?> 606 613 <?php else : ?> 607 614 <div class="manage-menus"> 608 615 <?php if ( $menu_count < 2 ) : ?> … … 627 634 foreach ( array_keys( $menu_locations, $_nav_menu->term_id ) as $menu_location_key ) { 628 635 $locations_assigned_to_this_menu[] = $locations[ $menu_location_key ]; 629 636 } 637 638 /** 639 * Filter the locations listed per menu. 640 * 641 * @since 3.6.0 642 */ 630 643 $assigned_locations = array_slice( $locations_assigned_to_this_menu, 0, absint( apply_filters( 'wp_nav_locations_listed_per_menu', 3 ) ) ); 631 644 632 645 // Adds ellipses following the number of locations defined in $assigned_locations