From 203199de6f676b2e0a73fbba419cece4d03f2976 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 17 Dec 2015 17:29:39 +0000 Subject: [PATCH] Docs: Add missing parameter notations to the DocBlock for `get_author_posts_url()`. See #32246. git-svn-id: https://develop.svn.wordpress.org/trunk@35993 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/author-template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/author-template.php b/src/wp-includes/author-template.php index 54ad8cada1..ef5d104d86 100644 --- a/src/wp-includes/author-template.php +++ b/src/wp-includes/author-template.php @@ -289,9 +289,11 @@ function the_author_posts_link( $deprecated = '' ) { * * @global WP_Rewrite $wp_rewrite * + * @param int $author_id Author ID. + * @param string $author_nicename Optional. The author's nicename (slug). Default empty. * @return string The URL to the author's page. */ -function get_author_posts_url($author_id, $author_nicename = '') { +function get_author_posts_url( $author_id, $author_nicename = '' ) { global $wp_rewrite; $auth_ID = (int) $author_id; $link = $wp_rewrite->get_author_permastruct();