Make WordPress Core

Ticket #25229: wp-comment.diff

File wp-comment.diff, 721 bytes (added by dustyf, 11 years ago)

first pass at wp-admin/comment.php

  • wp-admin/comment.php

     
    279279        edit_comment();
    280280
    281281        $location = ( empty( $_POST['referredby'] ) ? "edit-comments.php?p=$comment_post_id" : $_POST['referredby'] ) . '#comment-' . $comment_id;
     282       
     283        /**
     284         * The URI the user is redirected to after editing a comment in the admin.
     285         *
     286         * @since 2.1
     287         *
     288         * @param string $location The URI the user will be redirected to.
     289         * @param int $comment_id The ID of the comment being edited.
     290         */
    282291        $location = apply_filters( 'comment_edit_redirect', $location, $comment_id );
    283292        wp_redirect( $location );
    284293