mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 03:34:33 +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:
@@ -3636,3 +3636,18 @@ function wp_htmledit_pre($output) {
|
||||
return apply_filters( 'htmledit_pre', $output );
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve permalink from post ID.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @deprecated 4.4.0
|
||||
*
|
||||
* @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post.
|
||||
* @return string|false
|
||||
*/
|
||||
function post_permalink( $post_id = 0 ) {
|
||||
_deprecated_function( __FUNCTION__, '4.4', 'get_permalink()' );
|
||||
|
||||
return get_permalink( $post_id );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user