Make WordPress Core


Ignore:
Timestamp:
11/05/2021 10:27:30 PM (4 years ago)
Author:
hellofromTonya
Message:

Bundled Theme: Add privacy policy link to Twenty Twenty footer.

If a privacy policy is set, its page is now linked in the footer.

Follow-up to [46271].

Props audrasjb, justinahinon, kapilpaul, ryelle, sabernhardt.
Fixes #53446.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/footer.php

    r52013 r52023  
    2828                            <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
    2929                        </p><!-- .footer-copyright -->
     30
     31                        <?php
     32                        if ( function_exists( 'the_privacy_policy_link' ) ) {
     33                            the_privacy_policy_link( '<p class="privacy-policy">', '</p>' );
     34                        }
     35                        ?>
    3036
    3137                        <p class="powered-by-wordpress">
Note: See TracChangeset for help on using the changeset viewer.