Make WordPress Core


Ignore:
Timestamp:
11/20/2008 04:51:47 AM (16 years ago)
Author:
markjaquith
Message:

Repoint and redirect edit.php?p=X to edit-comments.php?p=X

File:
1 edited

Legend:

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

    r8697 r9807  
    184184        wp_redirect( wp_get_referer() );
    185185    else
    186         wp_redirect( admin_url('edit.php?p=' . absint( $comment->comment_post_ID ) . '#comments') );
     186        wp_redirect( admin_url('edit-comments.php?p=' . absint( $comment->comment_post_ID ) . '#comments') );
    187187
    188188    exit();
     
    209209        wp_redirect( wp_get_referer() );
    210210    else
    211         wp_redirect( admin_url('edit.php?p=' . absint( $comment->comment_post_ID ) . '#comments') );
     211        wp_redirect( admin_url('edit-comments.php?p=' . absint( $comment->comment_post_ID ) . '#comments') );
    212212
    213213    exit();
     
    223223    edit_comment();
    224224
    225     $location = ( empty( $_POST['referredby'] ) ? "edit.php?p=$comment_post_id" : $_POST['referredby'] ) . '#comment-' . $comment_id;
     225    $location = ( empty( $_POST['referredby'] ) ? "edit-comments.php?p=$comment_post_id" : $_POST['referredby'] ) . '#comment-' . $comment_id;
    226226    $location = apply_filters( 'comment_edit_redirect', $location, $comment_id );
    227227    wp_redirect( $location );
Note: See TracChangeset for help on using the changeset viewer.