[wp-trac] [WordPress Trac] #43436: Add opt-in for commenter cookies

WordPress Trac noreply at wordpress.org
Sun Mar 4 08:35:34 UTC 2018


#43436: Add opt-in for commenter cookies
------------------------------------------+------------------
 Reporter:  azaozz                        |       Owner:
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  5.0
Component:  Comments                      |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  gdpr has-patch needs-testing  |     Focuses:
------------------------------------------+------------------

Comment (by birgire):

 I agree with @xkon that it makes sense to have this un-checked by default.

 @lakenh: In [attachment:43436.1.diff]  we should be able to simplify:

 {{{
 $cookie_consent = ( isset( $_POST['cookies'] ) ) ? true : false;

 }}}

 with

 {{{
 $cookie_consent = isset( $_POST['cookies'] );

 }}}

 as {{{isset()}}} is already boolean.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43436#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list