Update phpdoc for get_permalink(). props tivnet. fixes #25115.

git-svn-id: https://develop.svn.wordpress.org/trunk@25077 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-08-21 22:12:01 +00:00
parent 20fa8b87b4
commit 0fd35a7e7d
1 changed files with 3 additions and 3 deletions

View File

@ -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(