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/link-template.php

    r32964 r33659  
    287287     */
    288288    return apply_filters( 'post_type_link', $post_link, $post, $leavename, $sample );
    289 }
    290 
    291 /**
    292  * Retrieve permalink from post ID.
    293  *
    294  * @since 1.0.0
    295  *
    296  * @param int|WP_Post $post_id    Optional. Post ID or WP_Post object. Default is global $post.
    297  * @param mixed       $deprecated Not used.
    298  * @return string|false
    299  */
    300 function post_permalink( $post_id = 0, $deprecated = '' ) {
    301     if ( !empty( $deprecated ) )
    302         _deprecated_argument( __FUNCTION__, '1.3' );
    303 
    304     return get_permalink($post_id);
    305289}
    306290
Note: See TracChangeset for help on using the changeset viewer.