From f0318988c4664a2e0c917c14159becf9e1cf8034 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 24 Jul 2014 22:24:07 +0000 Subject: [PATCH] Correct a few `@param` docs for `$walker`. Props dnaber-de. Fixes #29011. git-svn-id: https://develop.svn.wordpress.org/trunk@29293 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment-template.php | 2 +- src/wp-includes/nav-menu-template.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php index 5144285621..0d44376b2a 100644 --- a/src/wp-includes/comment-template.php +++ b/src/wp-includes/comment-template.php @@ -1889,7 +1889,7 @@ class Walker_Comment extends Walker { * @param string|array $args { * Optional. Formatting options. * - * @type string $walker The Walker class used to list comments. Default null. + * @type object $walker Instance of a Walker class to list comments. Default null. * @type int $max_depth The maximum comments depth. Default empty. * @type string $style The style of list ordering. Default 'ul'. Accepts 'ul', 'ol'. * @type string $callback Callback function to use. Default null. diff --git a/src/wp-includes/nav-menu-template.php b/src/wp-includes/nav-menu-template.php index d34dfc3b48..4d380a25ee 100644 --- a/src/wp-includes/nav-menu-template.php +++ b/src/wp-includes/nav-menu-template.php @@ -215,7 +215,7 @@ class Walker_Nav_Menu extends Walker { * @type string $link_after Text after the link. 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 string $walker Allows a custom walker class to be specified. Default empty. + * @type object $walker Instance of a custom walker class. Default empty. * @type string $theme_location Theme location to be used. Must be registered with register_nav_menu() * in order to be selectable by the user. * @type string $items_wrap How the list items should be wrapped. Default is a ul with an id and class.