Make WordPress Core


Ignore:
Timestamp:
10/10/2014 05:13:52 PM (10 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/nav-menu.php

    r29796 r29868  
    514514
    515515/**
    516  * Returns if a menu item is valid. Bug #13958
     516 * Return if a menu item is valid.
     517 *
     518 * @link https://core.trac.wordpress.org/ticket/13958
    517519 *
    518520 * @since 3.2.0
    519521 * @access private
    520522 *
    521  * @param object $menu_item The menu item to check
    522  * @return bool false if invalid, else true.
     523 * @param object $item The menu item to check.
     524 * @return bool False if invalid, otherwise true.
    523525 */
    524526function _is_valid_nav_menu_item( $item ) {
     
    530532
    531533/**
    532  * Returns all menu items of a navigation menu.
    533  *
    534  * @since 3.0.0
    535  *
    536  * @param string $menu menu name, id, or slug
    537  * @param string $args
    538  * @return mixed $items array of menu items, else false.
     534 * Return all menu items of a navigation menu.
     535 *
     536 * @since 3.0.0
     537 *
     538 * @param string $menu Menu name, ID, or slug.
     539 * @param array  $args Optional. Arguments to pass to {@see get_posts()}.
     540 * @return mixed $items Array of menu items, otherwise false.
    539541 */
    540542function wp_get_nav_menu_items( $menu, $args = array() ) {
Note: See TracChangeset for help on using the changeset viewer.