Changeset 7756
- Timestamp:
- 04/21/2008 04:46:15 PM (17 years ago)
- Location:
- branches/2.5/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/wp-admin/comment.php
r7304 r7756 142 142 wp_delete_comment( $comment->comment_ID ); 143 143 144 if ( '' != wp_get_referer() && false == $noredir )144 if ( '' != wp_get_referer() && false == $noredir && false === strpos(wp_get_referer(), 'comment.php' ) ) 145 145 wp_redirect( wp_get_referer() ); 146 else if ( '' != wp_get_original_referer() && false == $noredir ) 147 wp_redirect( wp_get_original_referer() ); 146 148 else 147 149 wp_redirect( get_option('siteurl') . '/wp-admin/edit-comments.php' ); -
branches/2.5/wp-admin/edit-form-comment.php
r7530 r7756 47 47 <input type="submit" name="save" value="<?php _e('Save'); ?>" tabindex="4" class="button button-highlighted" /> 48 48 <?php 49 echo "<a class='submitdelete' href='" . wp_nonce_url("comment.php?action=deletecomment&c=$comment->comment_ID ", 'delete-comment_' . $comment->comment_ID) . "' onclick=\"if ( confirm('" . js_escape(__("You are about to delete this comment. \n 'Cancel' to stop, 'OK' to delete.")) . "') ) { return true;}return false;\">" . __('Delete comment') . "</a>";49 echo "<a class='submitdelete' href='" . wp_nonce_url("comment.php?action=deletecomment&c=$comment->comment_ID&_wp_original_http_referer=" . wp_get_referer(), 'delete-comment_' . $comment->comment_ID) . "' onclick=\"if ( confirm('" . js_escape(__("You are about to delete this comment. \n 'Cancel' to stop, 'OK' to delete.")) . "') ) { return true;}return false;\">" . __('Delete comment') . "</a>"; 50 50 ?> 51 51 </p> … … 96 96 <input type="hidden" name="p" value="<?php echo $comment->comment_post_ID ?>" /> 97 97 <input name="referredby" type="hidden" id="referredby" value="<?php echo wp_get_referer(); ?>" /> 98 <?php wp_original_referer_field(true, 'previous'); ?> 98 99 <input type="hidden" name="noredir" value="1" /> 99 100 </div>
Note: See TracChangeset
for help on using the changeset viewer.