Changeset 43127 for branches/4.9/src/wp-comments-post.php
- Timestamp:
- 05/02/2018 10:10:30 PM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
- Property svn:mergeinfo changed
/trunk merged: 42772,43042
- Property svn:mergeinfo changed
-
branches/4.9/src/wp-comments-post.php
r38432 r43127 34 34 35 35 $user = wp_get_current_user(); 36 $cookies_consent = ( isset( $_POST['wp-comment-cookies-consent'] ) ); 36 37 37 38 /** … … 39 40 * 40 41 * @since 3.4.0 42 * @since 4.9.6 The `$cookies_consent` parameter was added. 41 43 * 42 * @param WP_Comment $comment Comment object. 43 * @param WP_User $user User object. The user may not exist. 44 * @param WP_Comment $comment Comment object. 45 * @param WP_User $user Comment author's user object. The user may not exist. 46 * @param boolean $cookies_consent Comment author's consent to store cookies. 44 47 */ 45 do_action( 'set_comment_cookies', $comment, $user );48 do_action( 'set_comment_cookies', $comment, $user, $cookies_consent ); 46 49 47 50 $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.