Make WordPress Core

Ticket #26869: 26869-25249.diff

File 26869-25249.diff, 2.0 KB (added by DrewAPicture, 11 years ago)

wp-comments-post.php [25249]

  • src/wp-comments-post.php

     
    2525        /**
    2626         * Fires when a comment is attempted on a post that does not exist.
    2727         *
    28          * @since unknown
     28         * @since 1.5.0
     29         *
    2930         * @param int $comment_post_ID Post ID.
    3031         */
    3132        do_action( 'comment_id_not_found', $comment_post_ID );
     
    4142        /**
    4243         * Fires when a comment is attempted on a post that has comments closed.
    4344         *
    44          * @since unknown
     45         * @since 1.5.0
     46         *
    4547         * @param int $comment_post_ID Post ID.
    4648         */
    4749        do_action( 'comment_closed', $comment_post_ID );
     
    5153         * Fires when a comment is attempted on a trashed post.
    5254         *
    5355         * @since 2.9.0
     56         *
    5457         * @param int $comment_post_ID Post ID.
    5558         */
    5659        do_action( 'comment_on_trash', $comment_post_ID );
     
    5962        /**
    6063         * Fires when a comment is attempted on a post in draft mode.
    6164         *
    62          * @since unknown
     65         * @since 1.5.2
     66         *
    6367         * @param int $comment_post_ID Post ID.
    6468         */
    6569        do_action( 'comment_on_draft', $comment_post_ID );
     
    6872        /**
    6973         * Fires when a comment is attempted on a password-protected post.
    7074         *
    71          * @since unknown
     75         * @since 2.9.0
     76         *
    7277         * @param int $comment_post_ID Post ID.
    7378         */
    7479        do_action( 'comment_on_password_protected', $comment_post_ID );
     
    7782        /**
    7883         * Fires before a comment is posted.
    7984         *
    80          * @since unknown
     85         * @since 2.8.0
     86         *
    8187         * @param int $comment_post_ID Post ID.
    8288         */
    8389        do_action( 'pre_comment_on_post', $comment_post_ID );
     
    141147$location = empty($_POST['redirect_to']) ? get_comment_link($comment_id) : $_POST['redirect_to'] . '#comment-' . $comment_id;
    142148
    143149/**
    144  * The location URI to send commenter after posting.
     150 * Filter the location URI to send the commenter after posting.
    145151 *
    146  * @since unknown
     152 * @since 2.0.5
    147153 *
    148154 * @param string $location The 'redirect_to' URI sent via $_POST.
    149155 * @param object $comment  Comment object.