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.