Make WordPress Core

Changeset 43508 for trunk


Ignore:
Timestamp:
07/19/2018 12:09:31 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Privacy: Use a consistent case for "Privacy Policy page" on Privacy Settings screen.

Props XpertOne, idea15, garrett-eclipse.
Fixes #44130.

File:
1 edited

Legend:

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

    r43374 r43508  
    2323        update_option( 'wp_page_for_privacy_policy', $privacy_policy_page_id );
    2424
    25         $privacy_page_updated_message = __( 'Privacy policy page updated successfully.' );
     25        $privacy_page_updated_message = __( 'Privacy Policy page updated successfully.' );
    2626
    2727        if ( $privacy_policy_page_id ) {
     
    4040                $privacy_page_updated_message = sprintf(
    4141                    /* translators: %s: URL to Customizer -> Menus */
    42                     __( 'Privacy policy page updated successfully. Remember to <a href="%s">update your menus</a>!' ),
     42                    __( 'Privacy Policy page updated successfully. Remember to <a href="%s">update your menus</a>!' ),
    4343                    esc_url( add_query_arg( 'autofocus[panel]', 'nav_menus', admin_url( 'customize.php' ) ) )
    4444                );
     
    7373                'page_for_privacy_policy',
    7474                'page_for_privacy_policy',
    75                 __( 'Unable to create privacy policy page.' ),
     75                __( 'Unable to create Privacy Policy page.' ),
    7676                'error'
    7777            );
     
    8585}
    8686
    87 // If a privacy policy page ID is available, make sure the page actually exists. If not, display an error.
     87// If a Privacy Policy page ID is available, make sure the page actually exists. If not, display an error.
    8888$privacy_policy_page_exists = false;
    8989$privacy_policy_page_id     = (int) get_option( 'wp_page_for_privacy_policy' );
     
    9797            'page_for_privacy_policy',
    9898            'page_for_privacy_policy',
    99             __( 'The currently selected privacy policy page does not exist. Please create or select new page.' ),
     99            __( 'The currently selected Privacy Policy page does not exist. Please create or select new page.' ),
    100100            'error'
    101101        );
     
    107107                sprintf(
    108108                    /* translators: URL to Pages Trash */
    109                     __( 'The currently selected privacy policy page is in the trash. Please create or select new privacy policy page or <a href="%s">restore the current page</a>.' ),
     109                    __( 'The currently selected Privacy Policy page is in the trash. Please create or select new Privacy Policy page or <a href="%s">restore the current page</a>.' ),
    110110                    'edit.php?post_status=trash&post_type=page'
    111111                ),
     
    128128    <h2><?php _e( 'Privacy Policy page' ); ?></h2>
    129129    <p>
    130         <?php _e( 'As a website owner, you may need to follow national or international privacy laws. For example, you may need to create and display a privacy policy.' ); ?>
    131         <?php _e( 'If you already have a privacy policy page, please select it below. If not, please create one.' ); ?>
     130        <?php _e( 'As a website owner, you may need to follow national or international privacy laws. For example, you may need to create and display a Privacy Policy.' ); ?>
     131        <?php _e( 'If you already have a Privacy Policy page, please select it below. If not, please create one.' ); ?>
    132132    </p>
    133133    <p>
    134         <?php _e( 'The new page will include help and suggestions for your privacy policy.' ); ?>
    135         <?php _e( 'However, it is your responsibility to use those resources correctly, to provide the information that your privacy policy requires, and to keep that information current and accurate.' ); ?>
     134        <?php _e( 'The new page will include help and suggestions for your Privacy Policy.' ); ?>
     135        <?php _e( 'However, it is your responsibility to use those resources correctly, to provide the information that your Privacy Policy requires, and to keep that information current and accurate.' ); ?>
    136136    </p>
    137137    <p>
    138         <?php _e( 'After your privacy policy page is set, we suggest that you edit it.' ); ?>
    139         <?php _e( 'We would also suggest reviewing your privacy policy from time to time, especially after installing or updating any themes or plugins. There may be changes or new suggested information for you to consider adding to your policy.' ); ?>
     138        <?php _e( 'After your Privacy Policy page is set, we suggest that you edit it.' ); ?>
     139        <?php _e( 'We would also suggest reviewing your Privacy Policy from time to time, especially after installing or updating any themes or plugins. There may be changes or new suggested information for you to consider adding to your policy.' ); ?>
    140140    </p>
    141141    <?php
     
    158158            if ( 'publish' === get_post_status( $privacy_policy_page_id ) ) {
    159159                /* translators: 1: URL to edit page, 2: URL to view page */
    160                 printf( __( '<a href="%1$s">Edit</a> or <a href="%2$s">view</a> your privacy policy page content.' ), $edit_href, $view_href );
     160                printf( __( '<a href="%1$s">Edit</a> or <a href="%2$s">view</a> your Privacy Policy page content.' ), $edit_href, $view_href );
    161161            } else {
    162162                /* translators: 1: URL to edit page, 2: URL to preview page */
    163                 printf( __( '<a href="%1$s">Edit</a> or <a href="%2$s">preview</a> your privacy policy page content.' ), $edit_href, $view_href );
     163                printf( __( '<a href="%1$s">Edit</a> or <a href="%2$s">preview</a> your Privacy Policy page content.' ), $edit_href, $view_href );
    164164            }
    165165
Note: See TracChangeset for help on using the changeset viewer.