From 090e0e24b9af419d092a99f26a7466859a4edd14 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 6 Sep 2013 17:01:09 +0000 Subject: [PATCH] Document comment_edit_redirect. props dustyf. see #25229. Built from https://develop.svn.wordpress.org/trunk@25282 git-svn-id: http://core.svn.wordpress.org/trunk@25246 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/comment.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wp-admin/comment.php b/wp-admin/comment.php index de5483e286..d20f98510a 100644 --- a/wp-admin/comment.php +++ b/wp-admin/comment.php @@ -279,6 +279,15 @@ case 'editedcomment' : edit_comment(); $location = ( empty( $_POST['referredby'] ) ? "edit-comments.php?p=$comment_post_id" : $_POST['referredby'] ) . '#comment-' . $comment_id; + + /** + * Filter the URI the user is redirected to after editing a comment in the admin. + * + * @since 2.1.0 + * + * @param string $location The URI the user will be redirected to. + * @param int $comment_id The ID of the comment being edited. + */ $location = apply_filters( 'comment_edit_redirect', $location, $comment_id ); wp_redirect( $location );