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. Built from https://develop.svn.wordpress.org/trunk@52023 git-svn-id: http://core.svn.wordpress.org/trunk@51615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d4c8830ae3
commit
c5662ee7a1
|
@ -28,6 +28,12 @@
|
||||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
|
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
|
||||||
</p><!-- .footer-copyright -->
|
</p><!-- .footer-copyright -->
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if ( function_exists( 'the_privacy_policy_link' ) ) {
|
||||||
|
the_privacy_policy_link( '<p class="privacy-policy">', '</p>' );
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<p class="powered-by-wordpress">
|
<p class="powered-by-wordpress">
|
||||||
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwenty' ) ); ?>">
|
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwenty' ) ); ?>">
|
||||||
<?php _e( 'Powered by WordPress', 'twentytwenty' ); ?>
|
<?php _e( 'Powered by WordPress', 'twentytwenty' ); ?>
|
||||||
|
|
|
@ -4464,15 +4464,22 @@ ul.footer-social li {
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-copyright a,
|
.footer-copyright a,
|
||||||
|
.privacy-policy a,
|
||||||
.powered-by-wordpress a {
|
.powered-by-wordpress a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.privacy-policy,
|
||||||
.powered-by-wordpress,
|
.powered-by-wordpress,
|
||||||
.to-the-top {
|
.to-the-top {
|
||||||
color: #6d6d6d;
|
color: #6d6d6d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.to-the-top {
|
||||||
|
margin-right: 2.4rem;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
a.to-the-top > * {
|
a.to-the-top > * {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
@ -4487,6 +4494,10 @@ a.to-the-top > * {
|
||||||
margin: 0 2.4rem 0 0;
|
margin: 0 2.4rem 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.privacy-policy {
|
||||||
|
margin: 1.2rem 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
.to-the-top-long {
|
.to-the-top-long {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -5570,14 +5581,15 @@ a.to-the-top > * {
|
||||||
|
|
||||||
.footer-credits {
|
.footer-credits {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-copyright {
|
.footer-copyright {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.powered-by-wordpress {
|
.privacy-policy {
|
||||||
display: block;
|
margin: 0 2.4rem 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.to-the-top-long {
|
.to-the-top-long {
|
||||||
|
@ -6028,6 +6040,10 @@ a.to-the-top > * {
|
||||||
.footer-menu li {
|
.footer-menu li {
|
||||||
margin: 1.2rem 2.4rem 0 0;
|
margin: 1.2rem 2.4rem 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.powered-by-wordpress {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4498,15 +4498,22 @@ ul.footer-social li {
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-copyright a,
|
.footer-copyright a,
|
||||||
|
.privacy-policy a,
|
||||||
.powered-by-wordpress a {
|
.powered-by-wordpress a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.privacy-policy,
|
||||||
.powered-by-wordpress,
|
.powered-by-wordpress,
|
||||||
.to-the-top {
|
.to-the-top {
|
||||||
color: #6d6d6d;
|
color: #6d6d6d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.to-the-top {
|
||||||
|
margin-left: 2.4rem;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
a.to-the-top > * {
|
a.to-the-top > * {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
@ -4521,6 +4528,10 @@ a.to-the-top > * {
|
||||||
margin: 0 0 0 2.4rem;
|
margin: 0 0 0 2.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.privacy-policy {
|
||||||
|
margin: 1.2rem 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
.to-the-top-long {
|
.to-the-top-long {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -5632,14 +5643,15 @@ a.to-the-top > * {
|
||||||
|
|
||||||
.footer-credits {
|
.footer-credits {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-copyright {
|
.footer-copyright {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.powered-by-wordpress {
|
.privacy-policy {
|
||||||
display: block;
|
margin: 0 0 0 2.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.to-the-top-long {
|
.to-the-top-long {
|
||||||
|
@ -6118,6 +6130,10 @@ a.to-the-top > * {
|
||||||
.footer-menu li {
|
.footer-menu li {
|
||||||
margin: 1.2rem 0 0 2.4rem;
|
margin: 1.2rem 0 0 2.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.powered-by-wordpress {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.9-alpha-52022';
|
$wp_version = '5.9-alpha-52023';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue