Make WordPress Core

Changeset 43124 for branches/4.9


Ignore:
Timestamp:
05/02/2018 09:59:34 PM (6 years ago)
Author:
SergeyBiryukov
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.
Merges [43120] to the 4.9 branch.
Fixes #43721.

Location:
branches/4.9
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/css/login.css

    r41556 r43124  
    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 {
  • branches/4.9/src/wp-login.php

    r43119 r43124  
    253253        printf( _x( '← Back to %s', 'site' ), get_bloginfo( 'title', 'display' ) );
    254254    ?></a></p>
     255    <?php the_privacy_policy_link( '<div class="privacy-policy-page-link">', '</div>' ); ?>
    255256    <?php endif; ?>
    256257
Note: See TracChangeset for help on using the changeset viewer.