Make WordPress Core

Changeset 43206 for trunk


Ignore:
Timestamp:
05/09/2018 11:11:29 PM (8 years ago)
Author:
SergeyBiryukov
Message:

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

Props tobifjellner.
See #43980.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/misc.php

    r43203 r43206  
    15561556                        <p>
    15571557                        <?php
     1558                        /* translators: 1: Privacy Policy guide URL, 2: additional link attributes, 3: accessibility text */
    15581559                        printf(
    1559                                 __( '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.' ),
    1560                                 '<a href="' . admin_url( 'tools.php?wp-privacy-policy-guide=1' ) . '" target="_blank">' . __( 'Check out our guide' ) . '</a>' );
     1560                                __( '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.' ),
     1561                                admin_url( 'tools.php?wp-privacy-policy-guide=1' ),
     1562                                'target="_blank"',
     1563                                sprintf(
     1564                                        '<span class="screen-reader-text"> %s</span>',
     1565                                        /* translators: accessibility text */
     1566                                        __( '(opens in a new tab)' )
     1567                                )
     1568                        );
    15611569                        ?>
    15621570                        </p>
  • trunk/src/wp-admin/privacy.php

    r43203 r43206  
    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.