Correct filter documentation in wp_nav_menu().
props dlh. fixes #28657. Built from https://develop.svn.wordpress.org/trunk@28867 git-svn-id: http://core.svn.wordpress.org/trunk@28667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
db501d7f72
commit
819d4f972c
|
@ -351,7 +351,8 @@ function wp_nav_menu( $args = array() ) {
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
*
|
*
|
||||||
* @param array $sorted_menu_items The menu items, sorted by each menu item's menu order.
|
* @param array $sorted_menu_items The menu items, sorted by each menu item's menu order.
|
||||||
|
* @param object $args An object containing wp_nav_menu() arguments.
|
||||||
*/
|
*/
|
||||||
$sorted_menu_items = apply_filters( 'wp_nav_menu_objects', $sorted_menu_items, $args );
|
$sorted_menu_items = apply_filters( 'wp_nav_menu_objects', $sorted_menu_items, $args );
|
||||||
|
|
||||||
|
@ -382,7 +383,7 @@ function wp_nav_menu( $args = array() ) {
|
||||||
* @see wp_nav_menu()
|
* @see wp_nav_menu()
|
||||||
*
|
*
|
||||||
* @param string $items The HTML list content for the menu items.
|
* @param string $items The HTML list content for the menu items.
|
||||||
* @param array $args Array of wp_nav_menu() arguments.
|
* @param object $args An object containing wp_nav_menu() arguments.
|
||||||
*/
|
*/
|
||||||
$items = apply_filters( 'wp_nav_menu_items', $items, $args );
|
$items = apply_filters( 'wp_nav_menu_items', $items, $args );
|
||||||
/**
|
/**
|
||||||
|
@ -393,7 +394,7 @@ function wp_nav_menu( $args = array() ) {
|
||||||
* @see wp_nav_menu()
|
* @see wp_nav_menu()
|
||||||
*
|
*
|
||||||
* @param string $items The HTML list content for the menu items.
|
* @param string $items The HTML list content for the menu items.
|
||||||
* @param array $args Array of wp_nav_menu() arguments.
|
* @param object $args An object containing wp_nav_menu() arguments.
|
||||||
*/
|
*/
|
||||||
$items = apply_filters( "wp_nav_menu_{$menu->slug}_items", $items, $args );
|
$items = apply_filters( "wp_nav_menu_{$menu->slug}_items", $items, $args );
|
||||||
|
|
||||||
|
@ -415,7 +416,7 @@ function wp_nav_menu( $args = array() ) {
|
||||||
* @see wp_nav_menu()
|
* @see wp_nav_menu()
|
||||||
*
|
*
|
||||||
* @param string $nav_menu The HTML content for the navigation menu.
|
* @param string $nav_menu The HTML content for the navigation menu.
|
||||||
* @param array $args Array of wp_nav_menu() arguments.
|
* @param object $args An object containing wp_nav_menu() arguments.
|
||||||
*/
|
*/
|
||||||
$nav_menu = apply_filters( 'wp_nav_menu', $nav_menu, $args );
|
$nav_menu = apply_filters( 'wp_nav_menu', $nav_menu, $args );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue