From 00054339832c997c3f06303905ef09a962ae8ca8 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 24 Jul 2014 22:25:16 +0000 Subject: [PATCH] Correct a few `@param` docs for `$walker`. Props dnaber-de. Fixes #29011. Built from https://develop.svn.wordpress.org/trunk@29293 git-svn-id: http://core.svn.wordpress.org/trunk@29075 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-template.php | 2 +- wp-includes/nav-menu-template.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 5144285621..0d44376b2a 100644 --- a/wp-includes/comment-template.php +++ b/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/wp-includes/nav-menu-template.php b/wp-includes/nav-menu-template.php index d34dfc3b48..4d380a25ee 100644 --- a/wp-includes/nav-menu-template.php +++ b/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.