Make WordPress Core

Changeset 43120


Ignore:
Timestamp:
05/02/2018 07:48:01 PM (8 years ago)
Author:
iandunn
Message:

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.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/login.css

    r41556 r43120  
    195195}
    196196
     197.login .privacy-policy-page-link {
     198        text-align: center;
     199        width: 100%;
     200        position: absolute;
     201        bottom: 20px;
     202        left: 0;
     203}
     204
    197205.login form .input,
    198206.login input[type="text"] {
    … …  
    253261}
    254262
     263@media ( max-height: 600px ) {
     264        .login .privacy-policy-page-link {
     265                position: relative;
     266                margin: 60px 0 20px 0;
     267        }
     268}
     269
    255270@media screen and ( max-height: 550px ) {
    256271        #login {
  • trunk/src/wp-login.php

    r43118 r43120  
    262262        ?>
    263263        </a></p>
     264        <?php the_privacy_policy_link( '<div class="privacy-policy-page-link">', '</div>' ); ?>
    264265        <?php endif; ?>
    265266
Note: See TracChangeset for help on using the changeset viewer.