Make WordPress Core


Ignore:
Timestamp:
09/08/2016 05:30:32 AM (9 years ago)
Author:
peterwilsoncc
Message:

Menus: Improve documentation of new $item_spacing argument.

Adds @since tags for and improves description of the new $item_spacing argument added to wp_nav_menu(), wp_list_pages(), and wp_page_menu() in [38523].

Props johnbillion for copy.
See #35206.

File:
1 edited

Legend:

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

    r38559 r38574  
    1515 *
    1616 * @since 3.0.0
     17 * @since 4.7.0 Added the `item_spacing` argument.
    1718 *
    1819 * @staticvar array $menu_id_slugs
     
    4142 *     @type string             $items_wrap      How the list items should be wrapped. Default is a ul with an id and class.
    4243 *                                               Uses printf() format with numbered placeholders.
    43  *     @type string             $item_spacing    Whether whitespace format the menu's HTML: 'discard' or 'preserve' (default).
     44 *     @type string             $item_spacing    Whether to preserve whitespace within the menu's HTML. Accepts 'preserve' or 'discard'. Default 'preserve'.
    4445 * }
    4546 * @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.