From 89211ee8d68c6ac7b93f929719ec106d0c4c0bb3 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 26 Nov 2013 07:44:10 +0000 Subject: [PATCH] Inline documentation for hooks in wp-admin/post.php. Props nukaga, kpdesign. Fixes #25846. Built from https://develop.svn.wordpress.org/trunk@26399 git-svn-id: http://core.svn.wordpress.org/trunk@26299 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/post.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wp-admin/post.php b/wp-admin/post.php index 1607cbcf3c..09a31ae4db 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -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; }