WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/21/2013 10:12:01 PM (6 years ago)
Author:
SergeyBiryukov
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r25030 r25077  
    7474 * @since 1.0.0
    7575 *
    76  * @param int $id Optional. Post ID.
    77  * @param bool $leavename Optional, defaults to false. Whether to keep post name or page name.
    78  * @return string
     76 * @param int|WP_Post $id Optional. Post ID or post object, defaults to the current post.
     77 * @param bool $leavename Optional. Whether to keep post name or page name, defaults to false.
     78 * @return string|bool The permalink URL or false if post does not exist.
    7979 */
    8080function get_permalink( $id = 0, $leavename = false ) {
Note: See TracChangeset for help on using the changeset viewer.