Make WordPress Core


Ignore:
Timestamp:
08/20/2015 06:24:00 AM (9 years ago)
Author:
wonderboymusic
Message:

Deprecate post_permalink() (Introduced in 1.0, already had a deprecated argument in 1.3), which just wraps get_permalink() and was only used by XML-RPC in 4 places.

Props solarissmoke.
Fixes #16982.

File:
1 edited

Legend:

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

    r33492 r33659  
    36373637}
    36383638
     3639/**
     3640 * Retrieve permalink from post ID.
     3641 *
     3642 * @since 1.0.0
     3643 * @deprecated 4.4.0
     3644 *
     3645 * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post.
     3646 * @return string|false
     3647 */
     3648function post_permalink( $post_id = 0 ) {
     3649    _deprecated_function( __FUNCTION__, '4.4', 'get_permalink()' );
     3650
     3651    return get_permalink( $post_id );
     3652}
     3653
Note: See TracChangeset for help on using the changeset viewer.