[wp-trac] [WordPress Trac] #17976: Make comment_* cookies pluggable

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 30 11:06:58 UTC 2011


#17976: Make comment_* cookies pluggable
-----------------------------------+-----------------------
 Reporter:  pishmishy              |       Owner:  westi
     Type:  feature request        |      Status:  accepted
 Priority:  normal                 |   Milestone:  3.3
Component:  Comments               |     Version:  3.2
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch westi-likes  |
-----------------------------------+-----------------------

Comment (by SergeyBiryukov):

 Replying to [comment:11 WhiteJV]:
 > If so, this will do well to allow us to not set new cookies, however,
 due to the long TTL of the cookie, there is a potential to expose
 personally identifiable information of users who have commented in the
 past but have never flushed their cookies.  Could this patch be expanded
 to also include a pluggable function for reading comment cookies?

 It's possible to hook into `wp_get_current_commenter()` function to ignore
 existing cookies:
 {{{
 function ignore_existing_comment_cookies($commenter) {
         return array( 'comment_author' => '', 'comment_author_email' =>
 '', 'comment_author_url' => '' );
 }
 add_filter( 'wp_get_current_commenter', 'ignore_existing_comment_cookies'
 );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17976#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list