Skip to content

Commit 92e93ba

Browse files
DrewAPictureDrewAPicture
authored andcommitted
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. git-svn-id: https://develop.svn.wordpress.org/trunk@37561 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 68a3fd3 commit 92e93ba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wp-includes/nav-menu-template.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@ public function end_el( &$output, $item, $depth = 0, $args = array() ) {
235235
* @type string $container_id The ID that is applied to the container. Default empty.
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.
244244
* @type object $walker Instance of a custom walker class. Default empty.

0 commit comments

Comments
 (0)