Inline documentation for hooks in wp-admin/nav-menus.php.

Props pauldewouters for the intial patch.
Fixes #25528.

Built from https://develop.svn.wordpress.org/trunk@25993


git-svn-id: http://core.svn.wordpress.org/trunk@25926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2013-10-30 15:45:08 +00:00
parent d0cfa40983
commit f34eb77cbc
1 changed files with 15 additions and 1 deletions

View File

@ -602,7 +602,13 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
<input type="hidden" name="menu" id="nav-menu-meta-object-id" value="<?php echo esc_attr( $nav_menu_selected_id ); ?>" /> <input type="hidden" name="menu" id="nav-menu-meta-object-id" value="<?php echo esc_attr( $nav_menu_selected_id ); ?>" />
</form> </form>
</div><!-- #menu-locations-wrap --> </div><!-- #menu-locations-wrap -->
<?php do_action( 'after_menu_locations_table' ); ?> <?php
/**
* Fires after the menu locations table is displayed.
*
* @since 3.6.0
*/
do_action( 'after_menu_locations_table' ); ?>
<?php else : ?> <?php else : ?>
<div class="manage-menus"> <div class="manage-menus">
<?php if ( $menu_count < 2 ) : ?> <?php if ( $menu_count < 2 ) : ?>
@ -627,6 +633,14 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
foreach ( array_keys( $menu_locations, $_nav_menu->term_id ) as $menu_location_key ) { foreach ( array_keys( $menu_locations, $_nav_menu->term_id ) as $menu_location_key ) {
$locations_assigned_to_this_menu[] = $locations[ $menu_location_key ]; $locations_assigned_to_this_menu[] = $locations[ $menu_location_key ];
} }
/**
* Filter the number of locations listed per menu in the drop-down select.
*
* @since 3.6.0
*
* @param int $locations Number of menu locations to list. Default 3.
*/
$assigned_locations = array_slice( $locations_assigned_to_this_menu, 0, absint( apply_filters( 'wp_nav_locations_listed_per_menu', 3 ) ) ); $assigned_locations = array_slice( $locations_assigned_to_this_menu, 0, absint( apply_filters( 'wp_nav_locations_listed_per_menu', 3 ) ) );
// Adds ellipses following the number of locations defined in $assigned_locations // Adds ellipses following the number of locations defined in $assigned_locations