Changeset 4261
- Timestamp:
- 09/28/2006 07:16:44 PM (18 years ago)
- Location:
- branches/2.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-admin/post.php
r4249 r4261 336 336 edit_comment(); 337 337 338 $referredby = $_POST['referredby']; 339 if (!empty($referredby)) { 340 wp_redirect($referredby); 341 } else { 342 wp_redirect("edit.php?p=$comment_post_ID&c=1#comments"); 343 } 338 $location = ( empty($_POST['referredby']) ? "edit.php?p=$comment_post_ID&c=1" : $_POST['referredby'] ) . '#comment-' . $comment_ID; 339 $location = apply_filters('comment_edit_redirect', $location, $comment_ID); 340 wp_redirect($location); 344 341 345 342 break; -
branches/2.0/wp-comments-post.php
r3771 r4261 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.