Make WordPress Core

Ticket #44202: link-template.diff

File link-template.diff, 522 bytes (added by subrataemfluence, 7 years ago)

Proposed patch for modified get_the_privacy_policy_link function

  • link-template.php

    diff --git src/wp-includes/link-template.php link-template.php
    index 815c539..663e236 100755
    old new function the_privacy_policy_link( $before = '', $after = '' ) { 
    43254325 *                doesn't exist.
    43264326 */
    43274327function get_the_privacy_policy_link( $before = '', $after = '' ) {
     4328        if( '1' != get_option( 'wp_privacy_policy_footer_link_visibility' ) ) {
     4329                return '';
     4330        }
     4331
    43284332        $link               = '';
    43294333        $privacy_policy_url = get_privacy_policy_url();
    43304334