WordPress.org

Make WordPress Core

Ticket #43473: 43473_default_policy_text.diff

File 43473_default_policy_text.diff, 7.3 KB (added by xkon, 3 years ago)
  • src/wp-admin/privacy.php

     
    3636                        'updated'
    3737                );
    3838        } elseif ( 'create-privacy-page' === $action ) {
     39
     40                $privacy_policy_page_content = '<h3>' . __( 'Who we are' ) . '</h3>';
     41                        // translators: %1$s site url, %2$s site name
     42                        $privacy_policy_page_content .= '<p>' . sprintf( __( '<a href="%1$s">%2$s</a>' ), get_bloginfo( 'url' ), get_bloginfo( 'name' ) ) . '</p>';
     43
     44                $privacy_policy_page_content         .= '<h3>' . __( 'What personal data we collect and why we collect it' ) . '</h3>';
     45                        $privacy_policy_page_content     .= '<h4>' . __( 'Contact forms' ) . '</h4>';
     46                        $privacy_policy_page_content     .= '<p>' . __( 'None.' ) . '</p>';
     47                        $privacy_policy_page_content     .= '<h4>' . __( 'Comments' ) . '</h4>';
     48                                $privacy_policy_page_content .= '<p>' . __( 'Only applies to visitors that leave comments on the site. We collect the data shown in the comments form, and also the visitor&#8217;s IP address and browser user agent string to help spam detection.' ) . '</p>';
     49                        $privacy_policy_page_content     .= '<h4>' . __( 'Cookies' ) . '</h4>';
     50                                $privacy_policy_page_content .= '<p>' . __( 'If you are logged out and leave a comment on this site you may opt-in to saving your name, email address and website. If you opt-in, three cookies will be created - one for your name, one for your email address and one for your website. These cookies are unique to this site and will persist for 1 year. <code>(comment_author_{site}, comment_author_email_{site}, comment_author_url_{site})</code>' ) . '</p>';
     51                                $privacy_policy_page_content .= '<p>' . __( 'If you attempt to log in to this site, we will set a temporary cookie to determine if your browser accepts cookies at all. This cookie contains no personal data and is discarded when you close your browser. <code>(wordpress_test_cookie)</code>' ) . '</p>';
     52                                $privacy_policy_page_content .= '<p>' . __( 'If you have an account and you log in to this site, we will set up to three cookies to save your log in information in your browser. These cookies are unique to this site and include your user name and a login token for you. If you select “Remember Me” these cookies will persist for two weeks. If not, they will persist for two days. Since these cookies save your user name and login information, if you log into this site using a public computer, it is important to log out before leaving the computer to prevent unauthorized access. <code>(wordpress_{site}, wordpress_sec_{site}, wordpress_logged_in_{site}).</code>' ) . '</p>';
     53                                $privacy_policy_page_content .= '<p>' . __( 'If you have an account, if your role permits it and if you use the administration pages of this site, up to two additional cookies will be saved in your browser. These cookies both include your user ID. The first cookie contains any screen options you&#8217;ve selected and the second contains the timestamp of the last time you visited an administration page. They expire after 1 year. <code>(wp-settings-{userID}, wp-settings-time-{userID})</code>' ) . '</p>';
     54                                $privacy_policy_page_content .= '<p>' . __( 'If you have an account, if your role permits it and if you use the administration pages of this site to edit articles, an additional cookie will be saved in your browser. This cookie includes no personal data and simply indicates the post ID of the article you just edited. It expires after 1 day. <code>(wp-saving-post)</code>' ) . '</p>';
     55                        $privacy_policy_page_content     .= '<h4>' . __( 'Third party embeds' ) . '</h4>';
     56                                $privacy_policy_page_content .= '<p>' . __( '??????????????????' ) . '</p>';
     57                        $privacy_policy_page_content     .= '<h4>' . __( 'Analytics' ) . '</h4>';
     58                                $privacy_policy_page_content .= '<p>' . __( 'None.' ) . '</p>';
     59
     60                $privacy_policy_page_content     .= '<h3>' . __( 'Who we share your data with' ) . '</h3>';
     61                        $privacy_policy_page_content .= '<p>' . __( 'Nobody.' ) . '</p>';
     62
     63                $privacy_policy_page_content     .= '<h3>' . __( 'How long we retain your data' ) . '</h3>';
     64                        $privacy_policy_page_content .= '<p>' . __( 'For visitors that leave comments: indefinitely. This is so we can recognize and approve any follow-up comments automatically instead of holding them in a moderation queue.' ) . '</p>';
     65                        $privacy_policy_page_content .= '<p>' . __( 'For users that register on the site (if any), we also store the data they provide in their profile. All registered users can see, change or delete most of that data at any time except their login name/nickname.' ) . '</p>';
     66
     67                $privacy_policy_page_content     .= '<h3>' . __( 'What rights you have over your data' ) . '</h3>';
     68                        $privacy_policy_page_content .= '<p>' . __( 'If you are a registered user or have left comments on our site you can request to see or download the data we have about you. Typically for visitors that have left comments that will be their email address, any IP addresses assigned to them at the time of leaving the comments and the browser user agent strings of the browsers they used. The rest of the data is public as published by the visitors.' ) . '</p>';
     69                        $privacy_policy_page_content .= '<p>' . __( 'You can also request "to be forgotten" and we will erase any personally identifiable data we have about you, typically a year after it was published. Of course this excludes data we need for administrative or security purposes or if we are required by law to retain some of the data.' ) . '</p>';
     70
     71                $privacy_policy_page_content     .= '<h3>' . __( 'Where we send your data' ) . '</h3>';
     72                        $privacy_policy_page_content .= '<p>' . __( 'For visitors that leave comments we may send the data to a spam detection service.' ) . '</p>';
     73
     74                $privacy_policy_page_content .= '<h3>' . __( 'Your contact information' ) . '</h3>';
     75
     76                $privacy_policy_page_content     .= '<h3>' . __( 'How we protect your data' ) . '</h3>';
     77                        $privacy_policy_page_content .= '<p>' . __( 'All access to sensitive areas of our site is password protected.' ) . '</p>';
     78
     79                $privacy_policy_page_content     .= '<h3>' . __( 'What data breach procedures we have in place' ) . '</h3>';
     80                        $privacy_policy_page_content .= '<p>' . __( 'If our site is compromised we will do our best to establish if any personal data was accessed and inform the affected users.' ) . '</p>';
     81
     82                $privacy_policy_page_content     .= '<h3>' . __( 'What third parties we receive data from' ) . '</h3>';
     83                        $privacy_policy_page_content .= '<p>' . __( 'None.' ) . '</p>';
     84
     85                $privacy_policy_page_content     .= '<h3>' . __( 'What automated decision making and/or profiling we do with user data' ) . '</h3>';
     86                        $privacy_policy_page_content .= '<p>' . __( 'For users that leave comments we may send the comment data to a spam detection service. We don&#8217;t do anything else for any users.' ) . '</p>';
     87
     88                $privacy_policy_page_content     .= '<h3>' . __( 'Any industry regulatory disclosure requirements' ) . '</h3>';
     89                        $privacy_policy_page_content .= '<p>' . __( '??????????????' ) . '</p>';
     90
    3991                $privacy_policy_page_id = wp_insert_post(
    4092                        array(
    41                                 'post_title'  => __( 'Privacy Policy' ),
    42                                 'post_status' => 'draft',
    43                                 'post_type'   => 'page',
     93                                'post_title'   => __( 'Privacy Policy' ),
     94                                'post_status'  => 'draft',
     95                                'post_type'    => 'page',
     96                                'post_content' => $privacy_policy_page_content,
    4497                        ),
    4598                        true
    4699                );