Ticket #26869: 26869-25249.diff
File 26869-25249.diff, 2.0 KB (added by , 11 years ago) |
---|
-
src/wp-comments-post.php
25 25 /** 26 26 * Fires when a comment is attempted on a post that does not exist. 27 27 * 28 * @since unknown 28 * @since 1.5.0 29 * 29 30 * @param int $comment_post_ID Post ID. 30 31 */ 31 32 do_action( 'comment_id_not_found', $comment_post_ID ); … … 41 42 /** 42 43 * Fires when a comment is attempted on a post that has comments closed. 43 44 * 44 * @since unknown 45 * @since 1.5.0 46 * 45 47 * @param int $comment_post_ID Post ID. 46 48 */ 47 49 do_action( 'comment_closed', $comment_post_ID ); … … 51 53 * Fires when a comment is attempted on a trashed post. 52 54 * 53 55 * @since 2.9.0 56 * 54 57 * @param int $comment_post_ID Post ID. 55 58 */ 56 59 do_action( 'comment_on_trash', $comment_post_ID ); … … 59 62 /** 60 63 * Fires when a comment is attempted on a post in draft mode. 61 64 * 62 * @since unknown 65 * @since 1.5.2 66 * 63 67 * @param int $comment_post_ID Post ID. 64 68 */ 65 69 do_action( 'comment_on_draft', $comment_post_ID ); … … 68 72 /** 69 73 * Fires when a comment is attempted on a password-protected post. 70 74 * 71 * @since unknown 75 * @since 2.9.0 76 * 72 77 * @param int $comment_post_ID Post ID. 73 78 */ 74 79 do_action( 'comment_on_password_protected', $comment_post_ID ); … … 77 82 /** 78 83 * Fires before a comment is posted. 79 84 * 80 * @since unknown 85 * @since 2.8.0 86 * 81 87 * @param int $comment_post_ID Post ID. 82 88 */ 83 89 do_action( 'pre_comment_on_post', $comment_post_ID ); … … 141 147 $location = empty($_POST['redirect_to']) ? get_comment_link($comment_id) : $_POST['redirect_to'] . '#comment-' . $comment_id; 142 148 143 149 /** 144 * The location URI to sendcommenter after posting.150 * Filter the location URI to send the commenter after posting. 145 151 * 146 * @since unknown152 * @since 2.0.5 147 153 * 148 154 * @param string $location The 'redirect_to' URI sent via $_POST. 149 155 * @param object $comment Comment object.