Make WordPress Core

Changeset 38370


Ignore:
Timestamp:
08/26/2016 04:50:58 PM (8 years ago)
Author:
johnbillion
Message:

Docs: Alignment after [38369].

See #37770

File:
1 edited

Legend:

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

    r38369 r38370  
    2121 *     Optional. Array of nav menu arguments.
    2222 *
    23  *     @type int|string|WP_Term $menu       Desired menu. Accepts (matching in order) id, slug, name, menu object. Default empty.
    24  *     @type string        $menu_class      CSS class to use for the ul element which forms the menu. Default 'menu'.
    25  *     @type string        $menu_id         The ID that is applied to the ul element which forms the menu.
    26  *                                          Default is the menu slug, incremented.
    27  *     @type string        $container       Whether to wrap the ul, and what to wrap it with. Default 'div'.
    28  *     @type string        $container_class Class that is applied to the container. Default 'menu-{menu slug}-container'.
    29  *     @type string        $container_id    The ID that is applied to the container. Default empty.
    30  *     @type callable|bool $fallback_cb     If the menu doesn't exists, a callback function will fire.
    31  *                                          Default is 'wp_page_menu'. Set to false for no fallback.
    32  *     @type string        $before          Text before the link markup. Default empty.
    33  *     @type string        $after           Text after the link markup. Default empty.
    34  *     @type string        $link_before     Text before the link text. Default empty.
    35  *     @type string        $link_after      Text after the link text. Default empty.
    36  *     @type bool          $echo            Whether to echo the menu or return it. Default true.
    37  *     @type int           $depth           How many levels of the hierarchy are to be included. 0 means all. Default 0.
    38  *     @type object        $walker          Instance of a custom walker class. Default empty.
    39  *     @type string        $theme_location  Theme location to be used. Must be registered with register_nav_menu()
    40  *                                          in order to be selectable by the user.
    41  *     @type string        $items_wrap      How the list items should be wrapped. Default is a ul with an id and class.
    42  *                                          Uses printf() format with numbered placeholders.
     23 *     @type int|string|WP_Term $menu            Desired menu. Accepts (matching in order) id, slug, name, menu object. Default empty.
     24 *     @type string             $menu_class      CSS class to use for the ul element which forms the menu. Default 'menu'.
     25 *     @type string             $menu_id         The ID that is applied to the ul element which forms the menu.
     26 *                                               Default is the menu slug, incremented.
     27 *     @type string             $container       Whether to wrap the ul, and what to wrap it with. Default 'div'.
     28 *     @type string             $container_class Class that is applied to the container. Default 'menu-{menu slug}-container'.
     29 *     @type string             $container_id    The ID that is applied to the container. Default empty.
     30 *     @type callable|bool      $fallback_cb     If the menu doesn't exists, a callback function will fire.
     31 *                                               Default is 'wp_page_menu'. Set to false for no fallback.
     32 *     @type string             $before          Text before the link markup. Default empty.
     33 *     @type string             $after           Text after the link markup. Default empty.
     34 *     @type string             $link_before     Text before the link text. Default empty.
     35 *     @type string             $link_after      Text after the link text. Default empty.
     36 *     @type bool               $echo            Whether to echo the menu or return it. Default true.
     37 *     @type int                $depth           How many levels of the hierarchy are to be included. 0 means all. Default 0.
     38 *     @type object             $walker          Instance of a custom walker class. Default empty.
     39 *     @type string             $theme_location  Theme location to be used. Must be registered with register_nav_menu()
     40 *                                               in order to be selectable by the user.
     41 *     @type string             $items_wrap      How the list items should be wrapped. Default is a ul with an id and class.
     42 *                                               Uses printf() format with numbered placeholders.
    4343 * }
    4444 * @return object|false|void Menu output if $echo is false, false if there are no items or no menu was found.
Note: See TracChangeset for help on using the changeset viewer.