WordPress.org

Make WordPress Core

Changeset 43207


Ignore:
Timestamp:
05/09/2018 11:13:35 PM (21 months ago)
Author:
SergeyBiryukov
Message:

Privacy: Make the help hint for Privacy Policy page more translatable and accessible.

Props tobifjellner.
Merges [43206] to the 4.9 branch.
See #43980.

Location:
branches/4.9
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/includes/misc.php

    r43204 r43207  
    15071507            <p>
    15081508            <?php
     1509            /* translators: 1: Privacy Policy guide URL, 2: additional link attributes, 3: accessibility text */
    15091510            printf(
    1510                 __( 'Need help putting together your new Privacy Policy page? %s for recommendations on what content to include, along with policies suggested by your plugins and theme.' ),
    1511                 '<a href="' . admin_url( 'tools.php?wp-privacy-policy-guide=1' ) . '" target="_blank">' . __( 'Check out our guide' ) . '</a>' );
     1511                __( 'Need help putting together your new Privacy Policy page? <a href="%1$s" %2$s>Check out our guide%3$s</a> for recommendations on what content to include, along with policies suggested by your plugins and theme.' ),
     1512                admin_url( 'tools.php?wp-privacy-policy-guide=1' ),
     1513                'target="_blank"',
     1514                sprintf(
     1515                    '<span class="screen-reader-text"> %s</span>',
     1516                    /* translators: accessibility text */
     1517                    __( '(opens in a new tab)' )
     1518                )
     1519            );
    15121520            ?>
    15131521            </p>
  • branches/4.9/src/wp-admin/privacy.php

    r43204 r43207  
    142142            <?php
    143143
     144            /* translators: 1: Privacy Policy guide URL, 2: additional link attributes, 3: accessibility text */
    144145            printf(
    145                 __( 'Need help putting together your new Privacy Policy page? %s for recommendations on what content to include, along with policies suggested by your plugins and theme.' ),
    146                 '<a href="' . admin_url( 'tools.php?wp-privacy-policy-guide' ) . '">' . __( 'Check out our guide' ) . '</a>'
     146                __( 'Need help putting together your new Privacy Policy page? <a href="%1$s" %2$s>Check out our guide%3$s</a> for recommendations on what content to include, along with policies suggested by your plugins and theme.' ),
     147                admin_url( 'tools.php?wp-privacy-policy-guide' ),
     148                '',
     149                ''
    147150            );
    148151
Note: See TracChangeset for help on using the changeset viewer.