WordPress.org

Make WordPress Core

Changeset 37561


Ignore:
Timestamp:
05/25/2016 04:16:45 PM (3 years ago)
Author:
DrewAPicture
Message:

Docs: Correct DocBlock descriptions for the $before, $after, $link_before, and $link_after arguments for wp_nav_menu().

  • $before falls before the link markup starts
  • $after falls after the link markup ends
  • $link_before falls before the link text
  • $link_after falls after the link text

Props wp_smith for the initial patch.

See #32246.

File:
1 edited

Legend:

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

    r37544 r37561  
    236236 *     @type callable|bool $fallback_cb     If the menu doesn't exists, a callback function will fire.
    237237 *                                          Default is 'wp_page_menu'. Set to false for no fallback.
    238  *     @type string        $before          Text before the link text. Default empty.
    239  *     @type string        $after           Text after the link text. Default empty.
    240  *     @type string        $link_before     Text before the link. Default empty.
    241  *     @type string        $link_after      Text after the link. Default empty.
     238 *     @type string        $before          Text before the link markup. Default empty.
     239 *     @type string        $after           Text after the link markup. Default empty.
     240 *     @type string        $link_before     Text before the link text. Default empty.
     241 *     @type string        $link_after      Text after the link text. Default empty.
    242242 *     @type bool          $echo            Whether to echo the menu or return it. Default true.
    243243 *     @type int           $depth           How many levels of the hierarchy are to be included. 0 means all. Default 0.
Note: See TracChangeset for help on using the changeset viewer.