Make WordPress Core


Ignore:
Timestamp:
04/21/2008 04:45:48 PM (17 years ago)
Author:
ryan
Message:

Redirect back to original referer when deleting a comment from the edit comment page. fixes #6458 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/comment.php

    r7304 r7755  
    142142        wp_delete_comment( $comment->comment_ID );
    143143
    144     if ( '' != wp_get_referer() && false == $noredir )
     144    if ( '' != wp_get_referer() && false == $noredir && false === strpos(wp_get_referer(), 'comment.php' ) )
    145145        wp_redirect( wp_get_referer() );
     146    else if ( '' != wp_get_original_referer() && false == $noredir )
     147        wp_redirect( wp_get_original_referer() );
    146148    else
    147149        wp_redirect( get_option('siteurl') . '/wp-admin/edit-comments.php' );
Note: See TracChangeset for help on using the changeset viewer.