From a342806b552f18868c74c12926af149163413760 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 6 Sep 2013 17:00:30 +0000 Subject: [PATCH] Document comment_edit_redirect. props dustyf. see #25229. git-svn-id: https://develop.svn.wordpress.org/trunk@25282 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/comment.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/wp-admin/comment.php b/src/wp-admin/comment.php index de5483e286..d20f98510a 100644 --- a/src/wp-admin/comment.php +++ b/src/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 );