Make WordPress Core

Ticket #25528: nav-menus-hook-docs-diff-rev1.diff

File nav-menus-hook-docs-diff-rev1.diff, 1.2 KB (added by pauldewouters, 11 years ago)
  • nav-menus.php

     
    602602                        <input type="hidden" name="menu" id="nav-menu-meta-object-id" value="<?php echo esc_attr( $nav_menu_selected_id ); ?>" />
    603603                </form>
    604604        </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                ?>
    606613        <?php else : ?>
    607614        <div class="manage-menus">
    608615                <?php if ( $menu_count < 2 ) : ?>
     
    627634                                                        foreach ( array_keys( $menu_locations, $_nav_menu->term_id ) as $menu_location_key ) {
    628635                                                                 $locations_assigned_to_this_menu[] = $locations[ $menu_location_key ];
    629636                                                        }
     637
     638                                                        /**
     639                                                         * Filter the locations listed per menu.
     640                                                         *
     641                                                         * @since 3.6.0
     642                                                         */
    630643                                                        $assigned_locations = array_slice( $locations_assigned_to_this_menu, 0, absint( apply_filters( 'wp_nav_locations_listed_per_menu', 3 ) ) );
    631644
    632645                                                        // Adds ellipses following the number of locations defined in $assigned_locations