Changeset 42772 for trunk/src/wp-comments-post.php
- Timestamp:
- 03/04/2018 04:40:43 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-comments-post.php
r42343 r42772 39 39 40 40 $user = wp_get_current_user(); 41 $cookies_consent = ( isset( $_POST['wp-comment-cookies-consent'] ) ); 41 42 42 43 /** … … 45 46 * @since 3.4.0 46 47 * 47 * @param WP_Comment $comment Comment object. 48 * @param WP_User $user User object. The user may not exist. 48 * @param WP_Comment $comment Comment object. 49 * @param WP_User $user User object. The user may not exist. 50 * @param boolean $cookies_consent Whether the user has opted-in commenter cookies. 49 51 */ 50 do_action( 'set_comment_cookies', $comment, $user );52 do_action( 'set_comment_cookies', $comment, $user, $cookies_consent ); 51 53 52 54 $location = empty( $_POST['redirect_to'] ) ? get_comment_link( $comment ) : $_POST['redirect_to'] . '#comment-' . $comment->comment_ID;
Note: See TracChangeset
for help on using the changeset viewer.