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.
Built from https://develop.svn.wordpress.org/trunk@52082


git-svn-id: http://core.svn.wordpress.org/trunk@51674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
hellofromTonya 2021-11-09 22:26:01 +00:00
parent b04ed7ed22
commit 2c874cfabc
6 changed files with 51 additions and 1 deletions

View File

@ -5573,6 +5573,10 @@ table.wp-calendar-table caption {
font-size: 1.5rem;
}
.site-footer > .site-info .privacy-policy {
margin-top: 15px;
}
.site-footer > .site-info .powered-by {
margin-top: 15px;
}
@ -5583,10 +5587,19 @@ table.wp-calendar-table caption {
align-items: center;
}
.site-footer > .site-info .site-name {
margin-right: 15px;
}
.site-footer > .site-info .privacy-policy,
.site-footer > .site-info .powered-by {
margin-top: initial;
margin-left: auto;
}
.site-footer > .site-info .privacy-policy + .powered-by {
margin-left: 15px;
}
}
.site-footer > .site-info a {

View File

@ -31,6 +31,7 @@
font-size: var(--branding--title--font-size);
}
.privacy-policy,
.powered-by {
margin-top: calc(0.5 * var(--global--spacing-vertical));
}
@ -39,10 +40,19 @@
display: flex;
align-items: center;
.site-name {
margin-right: calc(0.5 * var(--global--spacing-vertical));
}
.privacy-policy,
.powered-by {
margin-top: initial;
margin-left: auto;
}
.privacy-policy + .powered-by {
margin-left: calc(0.5 * var(--global--spacing-vertical));
}
}
a {

View File

@ -53,6 +53,13 @@
<?php endif; ?>
<?php endif; ?>
</div><!-- .site-name -->
<?php
if ( function_exists( 'the_privacy_policy_link' ) ) {
the_privacy_policy_link( '<div class="privacy-policy">', '</div>' );
}
?>
<div class="powered-by">
<?php
printf(

View File

@ -3975,6 +3975,7 @@ table.wp-calendar-table caption {
font-size: var(--branding--title--font-size);
}
.site-footer > .site-info .privacy-policy,
.site-footer > .site-info .powered-by {
margin-top: calc(0.5 * var(--global--spacing-vertical));
}
@ -3985,10 +3986,19 @@ table.wp-calendar-table caption {
align-items: center;
}
.site-footer > .site-info .site-name {
margin-left: calc(0.5 * var(--global--spacing-vertical));
}
.site-footer > .site-info .privacy-policy,
.site-footer > .site-info .powered-by {
margin-top: initial;
margin-right: auto;
}
.site-footer > .site-info .privacy-policy + .powered-by {
margin-right: calc(0.5 * var(--global--spacing-vertical));
}
}
.site-footer > .site-info a {

View File

@ -3995,6 +3995,7 @@ table.wp-calendar-table caption {
font-size: var(--branding--title--font-size);
}
.site-footer > .site-info .privacy-policy,
.site-footer > .site-info .powered-by {
margin-top: calc(0.5 * var(--global--spacing-vertical));
}
@ -4005,10 +4006,19 @@ table.wp-calendar-table caption {
align-items: center;
}
.site-footer > .site-info .site-name {
margin-right: calc(0.5 * var(--global--spacing-vertical));
}
.site-footer > .site-info .privacy-policy,
.site-footer > .site-info .powered-by {
margin-top: initial;
margin-left: auto;
}
.site-footer > .site-info .privacy-policy + .powered-by {
margin-left: calc(0.5 * var(--global--spacing-vertical));
}
}
.site-footer > .site-info a {

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.9-alpha-52081';
$wp_version = '5.9-alpha-52082';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.