Make WordPress Core

Ticket #44130: 44130.diff

File 44130.diff, 4.5 KB (added by XpertOne, 6 years ago)
  • src/wp-admin/privacy.php

     
    2222                $privacy_policy_page_id = isset( $_POST['page_for_privacy_policy'] ) ? (int) $_POST['page_for_privacy_policy'] : 0;
    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 ) {
    2828                        /*
     
    3939                        ) {
    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                                );
    4545                        }
     
    7272                        add_settings_error(
    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                        );
    7878                } else {
     
    8484        }
    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' );
    9090
     
    9696                add_settings_error(
    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                );
    102102        } else {
     
    106106                                'page_for_privacy_policy',
    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                                ),
    112112                                'error'
     
    128128        <h2><?php _e( 'Privacy Policy page' ); ?></h2>
    129129        <p>
    130130                <?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.' ); ?>
     131                <?php _e( 'If you already have a Privacy Policy page, please select it below. If not, please create one.' ); ?>
    132132        </p>
    133133        <p>
    134134                <?php _e( 'The new page will include help and suggestions for your privacy policy.' ); ?>
     
    135135                <?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.' ); ?>
     138                <?php _e( 'After your Privacy Policy page is set, we suggest that you edit it.' ); ?>
    139139                <?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
     
    157157
    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
    166166                        ?>