Allow plugins to change the redirect on post/page publishing/submitting. Fixes #10929 props johnjosephbachir and johnbillion.

git-svn-id: https://develop.svn.wordpress.org/trunk@12260 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2009-11-22 22:30:27 +00:00
parent 36c1e9d580
commit b9b969f12a
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ function redirect_page($page_ID) {
$location = add_query_arg( 'message', 1, get_edit_post_link( $page_ID, 'url' ) );
}
wp_redirect($location);
wp_redirect( apply_filters( 'redirect_page_location', $location, $page_ID ) );
}
if (isset($_POST['deletepost']))

View File

@ -69,7 +69,7 @@ function redirect_post($post_ID = '') {
$location = add_query_arg( 'message', 4, get_edit_post_link( $post_ID, 'url' ) );
}
wp_redirect( $location );
wp_redirect( apply_filters( 'redirect_post_location', $location, $post_ID ) );
}
if ( isset( $_POST['deletepost'] ) )