From 819d4f972ce3c0125385222294eaec458e04b6bf Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 27 Jun 2014 03:37:16 +0000 Subject: [PATCH] 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 --- wp-includes/nav-menu-template.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wp-includes/nav-menu-template.php b/wp-includes/nav-menu-template.php index a820c55a97..d34dfc3b48 100644 --- a/wp-includes/nav-menu-template.php +++ b/wp-includes/nav-menu-template.php @@ -351,7 +351,8 @@ function wp_nav_menu( $args = array() ) { * * @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 ); @@ -382,7 +383,7 @@ function wp_nav_menu( $args = array() ) { * @see wp_nav_menu() * * @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 ); /** @@ -393,7 +394,7 @@ function wp_nav_menu( $args = array() ) { * @see wp_nav_menu() * * @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 ); @@ -415,7 +416,7 @@ function wp_nav_menu( $args = array() ) { * @see wp_nav_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 );