WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/27/2014 03:36:05 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Correct filter documentation in wp_nav_menu().

props dlh.
fixes #28657.

File:
1 edited

Legend:

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

    r28826 r28867  
    352352     * @since 3.1.0
    353353     *
    354      * @param array $sorted_menu_items The menu items, sorted by each menu item's menu order.
     354     * @param array  $sorted_menu_items The menu items, sorted by each menu item's menu order.
     355     * @param object $args              An object containing wp_nav_menu() arguments.
    355356     */
    356357    $sorted_menu_items = apply_filters( 'wp_nav_menu_objects', $sorted_menu_items, $args );
     
    383384     *
    384385     * @param string $items The HTML list content for the menu items.
    385      * @param array  $args  Array of wp_nav_menu() arguments.
     386     * @param object $args  An object containing wp_nav_menu() arguments.
    386387     */
    387388    $items = apply_filters( 'wp_nav_menu_items', $items, $args );
     
    394395     *
    395396     * @param string $items The HTML list content for the menu items.
    396      * @param array  $args  Array of wp_nav_menu() arguments.
     397     * @param object $args  An object containing wp_nav_menu() arguments.
    397398     */
    398399    $items = apply_filters( "wp_nav_menu_{$menu->slug}_items", $items, $args );
     
    416417     *
    417418     * @param string $nav_menu The HTML content for the navigation menu.
    418      * @param array  $args     Array of wp_nav_menu() arguments.
     419     * @param object $args     An object containing wp_nav_menu() arguments.
    419420     */
    420421    $nav_menu = apply_filters( 'wp_nav_menu', $nav_menu, $args );
Note: See TracChangeset for help on using the changeset viewer.