From 0fd35a7e7d61824ba284989cd3ec264d427bcf98 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 21 Aug 2013 22:12:01 +0000 Subject: [PATCH] Update phpdoc for get_permalink(). props tivnet. fixes #25115. git-svn-id: https://develop.svn.wordpress.org/trunk@25077 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/link-template.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/link-template.php b/src/wp-includes/link-template.php index 91c375d628..516f6aea97 100644 --- a/src/wp-includes/link-template.php +++ b/src/wp-includes/link-template.php @@ -73,9 +73,9 @@ function permalink_anchor( $mode = 'id' ) { * * @since 1.0.0 * - * @param int $id Optional. Post ID. - * @param bool $leavename Optional, defaults to false. Whether to keep post name or page name. - * @return string + * @param int|WP_Post $id Optional. Post ID or post object, defaults to the current post. + * @param bool $leavename Optional. Whether to keep post name or page name, defaults to false. + * @return string|bool The permalink URL or false if post does not exist. */ function get_permalink( $id = 0, $leavename = false ) { $rewritecode = array(