Make WordPress Core

Changeset 27201


Ignore:
Timestamp:
02/20/2014 05:07:39 AM (13 years ago)
Author:
DrewAPicture
Message:

Fixes for hooks documentation wp-includes/nav-menu-template.php.

See #26869, #25229 and [25410].

File:
1 edited

Legend:

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

    r26868 r27201  
    9393                 * @since 3.0.0
    9494                 *
     95                 * @see wp_nav_menu()
     96                 *
    9597                 * @param array  $classes The CSS classes that are applied to the menu item's <li>.
    9698                 * @param object $item    The current menu item.
    97                  * @param array  $args    An array of arguments. @see wp_nav_menu()
     99                 * @param array  $args    An array of wp_nav_menu() arguments.
    98100                 */
    99101                $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) );
    … …  
    105107                 * @since 3.0.1
    106108                 *
    107                  * @param string The ID that is applied to the menu item's <li>.
    108                  * @param object $item The current menu item.
    109                  * @param array $args An array of arguments. @see wp_nav_menu()
     109                 * @see wp_nav_menu()
     110                 *
     111                 * @param string $menu_id The ID that is applied to the menu item's <li>.
     112                 * @param object $item    The current menu item.
     113                 * @param array  $args    An array of wp_nav_menu() arguments.
    110114                 */
    111115                $id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args );
    … …  
    125129                 * @since 3.6.0
    126130                 *
     131                 * @see wp_nav_menu()
     132                 *
    127133                 * @param array $atts {
    128134                 *     The HTML attributes applied to the menu item's <a>, empty strings are ignored.
    129135                 *
    130                  *     @type string $title  The title attribute.
    131                  *     @type string $target The target attribute.
     136                 *     @type string $title  Title attribute.
     137                 *     @type string $target Target attribute.
    132138                 *     @type string $rel    The rel attribute.
    133139                 *     @type string $href   The href attribute.
    134140                 * }
    135141                 * @param object $item The current menu item.
    136                  * @param array  $args An array of arguments. @see wp_nav_menu()
     142                 * @param array  $args An array of wp_nav_menu() arguments.
    137143                 */
    138144                $atts = apply_filters( 'nav_menu_link_attributes', $atts, $item, $args );
    … …  
    162168                 * @since 3.0.0
    163169                 *
     170                 * @see wp_nav_menu()
     171                 *
    164172                 * @param string $item_output The menu item's starting HTML output.
    165173                 * @param object $item        Menu item data object.
    166174                 * @param int    $depth       Depth of menu item. Used for padding.
    167                  * @param array  $args        An array of arguments. @see wp_nav_menu()
     175                 * @param array  $args        An array of wp_nav_menu() arguments.
    168176                 */
    169177                $output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
    … …  
    227235         * @since 3.0.0
    228236         *
    229          * @param array $args Arguments from {@see wp_nav_menu()}.
     237         * @see wp_nav_menu()
     238         *
     239         * @param array $args Array of wp_nav_menu() arguments.
    230240         */
    231241        $args = apply_filters( 'wp_nav_menu_args', $args );
    … …  
    278288                 * @since 3.0.0
    279289                 *
    280                  * @param array The acceptable HTML tags for use as menu containers, defaults as 'div' and 'nav'.
     290                 * @param array $tags The acceptable HTML tags for use as menu containers.
     291                 *                    Default is array containing 'div' and 'nav'.
    281292                 */
    282293                $allowed_tags = apply_filters( 'wp_nav_menu_container_allowedtags', array( 'div', 'nav' ) );
    … …  
    342353         * @since 3.0.0
    343354         *
     355         * @see wp_nav_menu()
     356         *
    344357         * @param string $items The HTML list content for the menu items.
    345          * @param array $args Arguments from {@see wp_nav_menu()}.
     358         * @param array  $args  Array of wp_nav_menu() arguments.
    346359         */
    347360        $items = apply_filters( 'wp_nav_menu_items', $items, $args );
    … …  
    351364         * @since 3.0.0
    352365         *
     366         * @see wp_nav_menu()
     367         *
    353368         * @param string $items The HTML list content for the menu items.
    354          * @param array $args Arguments from {@see wp_nav_menu()}.
     369         * @param array  $args  Array of wp_nav_menu() arguments.
    355370         */
    356371        $items = apply_filters( "wp_nav_menu_{$menu->slug}_items", $items, $args );
    … …  
    371386         * @since 3.0.0
    372387         *
     388         * @see wp_nav_menu()
     389         *
    373390         * @param string $nav_menu The HTML content for the navigation menu.
    374          * @param array $args Arguments from {@see wp_nav_menu()}.
     391         * @param array  $args     Array of wp_nav_menu() arguments.
    375392         */
    376393        $nav_menu = apply_filters( 'wp_nav_menu', $nav_menu, $args );
Note: See TracChangeset for help on using the changeset viewer.