Privacy: Add policy link to login screen.

Personal data collection is more likely for registered users than casual visitors, and the privacy policy might have been updated since a user last logged in. Those changes could impact the collection of personal data from registered users, so it makes sense to provide a link to the policy before users log in.

Props voneff, xkon, melchoyce, chetan200891, desrosj.
Fixes #43721.


git-svn-id: https://develop.svn.wordpress.org/trunk@43120 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ian Dunn 2018-05-02 19:48:01 +00:00
parent e678d4ea6d
commit 6e5a2e295c
2 changed files with 16 additions and 0 deletions

View File

@ -194,6 +194,14 @@ p {
color: #124964;
}
.login .privacy-policy-page-link {
text-align: center;
width: 100%;
position: absolute;
bottom: 20px;
left: 0;
}
.login form .input,
.login input[type="text"] {
font-size: 24px;
@ -252,6 +260,13 @@ body.interim-login {
width: device-width;
}
@media ( max-height: 600px ) {
.login .privacy-policy-page-link {
position: relative;
margin: 60px 0 20px 0;
}
}
@media screen and ( max-height: 550px ) {
#login {
padding: 20px 0;

View File

@ -261,6 +261,7 @@ function login_footer( $input_id = '' ) {
printf( _x( '← Back to %s', 'site' ), get_bloginfo( 'title', 'display' ) );
?>
</a></p>
<?php the_privacy_policy_link( '<div class="privacy-policy-page-link">', '</div>' ); ?>
<?php endif; ?>
</div>