wp/wp-comments-post.php
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
    41 
    41 
    42 $user            = wp_get_current_user();
    42 $user            = wp_get_current_user();
    43 $cookies_consent = ( isset( $_POST['wp-comment-cookies-consent'] ) );
    43 $cookies_consent = ( isset( $_POST['wp-comment-cookies-consent'] ) );
    44 
    44 
    45 /**
    45 /**
    46  * Perform other actions when comment cookies are set.
    46  * Fires after comment cookies are set.
    47  *
    47  *
    48  * @since 3.4.0
    48  * @since 3.4.0
    49  * @since 4.9.6 The `$cookies_consent` parameter was added.
    49  * @since 4.9.6 The `$cookies_consent` parameter was added.
    50  *
    50  *
    51  * @param WP_Comment $comment         Comment object.
    51  * @param WP_Comment $comment         Comment object.