[wp-trac] [WordPress Trac] #44202: Link to "Privacy Policy" automatically added to footer of any Twenty XXX theme

WordPress Trac noreply at wordpress.org
Fri May 25 08:38:47 UTC 2018


#44202: Link to "Privacy Policy" automatically added to footer of any Twenty XXX
theme
-------------------------------+----------------------
 Reporter:  Ov3rfly            |       Owner:  (none)
     Type:  enhancement        |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Bundled Theme      |     Version:  4.9.6
 Severity:  normal             |  Resolution:  invalid
 Keywords:  gdpr dev-feedback  |     Focuses:  privacy
-------------------------------+----------------------

Comment (by Ov3rfly):

 Thanks for your advise, we now have rolled out this plugin to a number of
 sites which are based on default Twenty XXX themes.

 {{{#!php
 <?php
 /*
 Plugin Name: Remove "Privacy Policy" in Twenty XXX footer
 Description: Removes the "Privacy Policy" automatically added to footer of
 any Twenty XXX theme,
 https://core.trac.wordpress.org/ticket/44202#comment:8
 Version: 1.0
 Author: Gary Pendergast
 Author URI: https://profiles.wordpress.org/pento
 */
 add_filter( 'the_privacy_policy_link', '__return_empty_string' );
 }}}


 It is pretty effective, the "Privacy Policy" link in WordPress core login
 and registration pages is now gone as well.

 Seems that the current implementation to show theme functionalities like
 adding a privacy policy link in default themes is not consistent to usual
 implementation, with own functions and filters using a twentyXXX_ prefix,
 like twentyseventeen_get_svg(), twentyseventeen_is_frontpage(), all the
 way back to twentyten_continue_reading_link(), etc.

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


More information about the wp-trac mailing list