From cdf9456b79832bb7b2a7113cf3e459b41339725a Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Fri, 10 Oct 2014 17:14:19 +0000 Subject: [PATCH] Clarify inline documentation for the `_is_valid_nav_menu_item()` and `wp_get_nav_menu_items()` in wp-includes/nav-menu.php. Props morganestes for the initial patch. Fixes #29914. Built from https://develop.svn.wordpress.org/trunk@29868 git-svn-id: http://core.svn.wordpress.org/trunk@29628 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/nav-menu.php | 16 +++++++++------- wp-includes/version.php | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/wp-includes/nav-menu.php b/wp-includes/nav-menu.php index f715161a48..9e6edb554b 100644 --- a/wp-includes/nav-menu.php +++ b/wp-includes/nav-menu.php @@ -513,13 +513,15 @@ function _sort_nav_menu_items( $a, $b ) { } /** - * Returns if a menu item is valid. Bug #13958 + * Return if a menu item is valid. + * + * @link https://core.trac.wordpress.org/ticket/13958 * * @since 3.2.0 * @access private * - * @param object $menu_item The menu item to check - * @return bool false if invalid, else true. + * @param object $item The menu item to check. + * @return bool False if invalid, otherwise true. */ function _is_valid_nav_menu_item( $item ) { if ( ! empty( $item->_invalid ) ) @@ -529,13 +531,13 @@ function _is_valid_nav_menu_item( $item ) { } /** - * Returns all menu items of a navigation menu. + * Return all menu items of a navigation menu. * * @since 3.0.0 * - * @param string $menu menu name, id, or slug - * @param string $args - * @return mixed $items array of menu items, else false. + * @param string $menu Menu name, ID, or slug. + * @param array $args Optional. Arguments to pass to {@see get_posts()}. + * @return mixed $items Array of menu items, otherwise false. */ function wp_get_nav_menu_items( $menu, $args = array() ) { $menu = wp_get_nav_menu_object( $menu ); diff --git a/wp-includes/version.php b/wp-includes/version.php index c859c14209..827618324d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-alpha-20141009'; +$wp_version = '4.1-alpha-20141010'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.