Changeset 4260
- Timestamp:
- 09/28/2006 07:16:15 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/comment.php
r4210 r4260 178 178 edit_comment(); 179 179 180 $referredby = $_POST['referredby']; 181 if (!empty($referredby)) { 182 wp_redirect($referredby); 183 } else { 184 wp_redirect("edit.php?p=$comment_post_ID&c=1#comments"); 185 } 180 $location = ( empty($_POST['referredby']) ? "edit.php?p=$comment_post_ID&c=1" : $_POST['referredby'] ) . '#comment-' . $comment_ID; 181 $location = apply_filters('comment_edit_redirect', $location, $comment_ID); 182 wp_redirect($location); 186 183 187 184 break; -
trunk/wp-comments-post.php
r4144 r4260 58 58 endif; 59 59 60 $location = ( empty( $_POST['redirect_to'] ) ) ? get_permalink( $comment_post_ID ) : $_POST['redirect_to']; 60 $location = ( empty($_POST['redirect_to']) ? get_permalink($comment_post_ID) : $_POST['redirect_to'] ) . '#comment-' . $comment_id; 61 $location = apply_filters('comment_post_redirect', $location, $comment); 61 62 62 wp_redirect( $location);63 wp_redirect($location); 63 64 64 65 ?>
Note: See TracChangeset
for help on using the changeset viewer.