mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user