From ba9e51c4a5574c4b6a432c859a2a343bce83daa7 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Wed, 25 May 2016 16:16:45 +0000 Subject: [PATCH] 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 --- src/wp-includes/nav-menu-template.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/nav-menu-template.php b/src/wp-includes/nav-menu-template.php index aaba786f41..9f11165323 100644 --- a/src/wp-includes/nav-menu-template.php +++ b/src/wp-includes/nav-menu-template.php @@ -235,10 +235,10 @@ class Walker_Nav_Menu extends Walker { * @type string $container_id The ID that is applied to the container. Default empty. * @type callable|bool $fallback_cb If the menu doesn't exists, a callback function will fire. * Default is 'wp_page_menu'. Set to false for no fallback. - * @type string $before Text before the link text. Default empty. - * @type string $after Text after the link text. Default empty. - * @type string $link_before Text before the link. Default empty. - * @type string $link_after Text after the link. Default empty. + * @type string $before Text before the link markup. Default empty. + * @type string $after Text after the link markup. Default empty. + * @type string $link_before Text before the link text. Default empty. + * @type string $link_after Text after the link text. Default empty. * @type bool $echo Whether to echo the menu or return it. Default true. * @type int $depth How many levels of the hierarchy are to be included. 0 means all. Default 0. * @type object $walker Instance of a custom walker class. Default empty.