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.


git-svn-id: https://develop.svn.wordpress.org/trunk@33659 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-08-20 06:24:00 +00:00
parent 8528ff2ab4
commit 4b746c4b4e
3 changed files with 19 additions and 20 deletions

View File

@@ -288,22 +288,6 @@ function get_post_permalink( $id = 0, $leavename = false, $sample = false ) {
return apply_filters( 'post_type_link', $post_link, $post, $leavename, $sample );
}
/**
* Retrieve permalink from post ID.
*
* @since 1.0.0
*
* @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post.
* @param mixed $deprecated Not used.
* @return string|false
*/
function post_permalink( $post_id = 0, $deprecated = '' ) {
if ( !empty( $deprecated ) )
_deprecated_argument( __FUNCTION__, '1.3' );
return get_permalink($post_id);
}
/**
* Retrieve the permalink for current page or page ID.
*