Make WordPress Core

Ticket #43473: 43473.7.diff

File 43473.7.diff, 2.9 KB (added by birgire, 7 years ago)
  • src/wp-admin/includes/misc.php

    diff --git src/wp-admin/includes/misc.php src/wp-admin/includes/misc.php
    index bdd1df2..fd2c8f9 100644
    final class WP_Privacy_Policy_Content { 
    16481648
    16491649                        '<h2>' . __( 'Who we are' ) . '</h2>' .
    16501650                        '<p class="wp-policy-help">' . __( 'In this section you should note your site URL, as well as the name of the company, organization, or individual behind it, and some accurate contact information.' ) . '</p>' .
    1651                         '<p class="wp-policy-help">' . __( 'The amount of information you may be required to show will vary depending on your local or national business regulations. You may, for example, be required to display a physical address, a registered address, or your company registration number.' ) . '</p>' .
    1652                         '<p>' . __( 'Our website address is: $1%s.' ) . '</p>' .
     1651                        '<p class="wp-policy-help">' . __( 'The amount of information you may be required to show will vary depending on your local or national business regulations. You may, for example, be required to display a physical address, a registered address, or your company registration number.' ) . '</p>';
    16531652
    1654                         '<h2>' . __( 'What personal data we collect and why we collect it' ) . '</h2>' .
     1653                /* translators: %s Site URL */
     1654                $content .= '<p>' . sprintf( __( 'Our website address is: %s' ), get_bloginfo( 'url', 'display' ) ) . '</p>';
     1655
     1656                $content .= '<h2>' . __( 'What personal data we collect and why we collect it' ) . '</h2>' .
    16551657                        '<p class="wp-policy-help">' . __( 'In this section you should note what personal data you collect from users and site visitors. This may include transactional data, such as purchase information; technical data, such as information about cookies; and personal data, such as user account information.' ) . '</p>' .
    16561658                        '<p class="wp-policy-help">' . __( 'You must also note any collection and retention of sensitive personal data, such as data concerning health.' ) . '</p>' .
    16571659                        '<p class="wp-policy-help">' . __( 'In addition to listing what personal data you collect, you need to note why you collect it. These explanations must note either the legal basis for your data collection and retention or the active consent the user has given.' ) . '</p>' .
    final class WP_Privacy_Policy_Content { 
    17221724                        '<p class="wp-policy-help">' . __( 'If you are a  member of a regulated industry, or if you are subject to additional privacy laws, you may be required to disclose that information here.' ) . '</p>';
    17231725                        // End of the suggested policy text.
    17241726
    1725                 $content = str_replace( '$1%s', get_bloginfo( 'url', 'display' ), $content );
    1726 
    17271727                /**
    17281728                 * Filters the default content suggested for inclusion in a privacy policy.
    17291729                 *
    17301730                 * @since 4.9.6
    17311731                 *
    1732                  * @param $content string The defauld policy content.
     1732                 * @param $content string The default policy content.
    17331733                 */
    17341734                return apply_filters( 'wp_get_default_privacy_policy_content', $content );
    17351735        }