diff --git a/wp-admin/page.php b/wp-admin/page.php index f0b139cacf..30d550d59b 100644 --- a/wp-admin/page.php +++ b/wp-admin/page.php @@ -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'])) diff --git a/wp-admin/post.php b/wp-admin/post.php index a8fe8bf296..8670110303 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -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'] ) )