mirror of
git://develop.git.wordpress.org/
synced 2025-03-14 17:09:47 +01:00
Inline documentation for hooks in wp-admin/post.php.
Props nukaga, kpdesign. Fixes #25846. git-svn-id: https://develop.svn.wordpress.org/trunk@26399 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
470d6106b0
commit
0cf54f5344
@ -70,6 +70,14 @@ function redirect_post($post_id = '') {
|
||||
$location = add_query_arg( 'message', 4, get_edit_post_link( $post_id, 'url' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the post redirect destination URL.
|
||||
*
|
||||
* @since 2.9.0
|
||||
*
|
||||
* @param string $location The destination URL.
|
||||
* @param int $post_id The post ID.
|
||||
*/
|
||||
wp_redirect( apply_filters( 'redirect_post_location', $location, $post_id ) );
|
||||
exit;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user