Make WordPress Core


Ignore:
Timestamp:
11/09/2021 10:24:47 PM (2 years ago)
Author:
hellofromTonya
Message:

Twenty Twenty-One: Add privacy policy link to footer.

If a privacy policy is set, the page links to the footer of the site. As done in the other bundled themes, this link is added using the_privacy_policy_link().

Follow-up to [49216].

Props ryelle, desrosj, kapilpaul, sabernhardt, audrasjb, justinahinon.
Fixes #53445.

File:
1 edited

Legend:

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

    r52013 r52082  
    5454                <?php endif; ?>
    5555            </div><!-- .site-name -->
     56
     57            <?php
     58            if ( function_exists( 'the_privacy_policy_link' ) ) {
     59                the_privacy_policy_link( '<div class="privacy-policy">', '</div>' );
     60            }
     61            ?>
     62
    5663            <div class="powered-by">
    5764                <?php
Note: See TracChangeset for help on using the changeset viewer.