Privacy: add default text for a privacy policy. First run.
Props xkon, idea15, allendav, azaozz. See #43473. Built from https://develop.svn.wordpress.org/trunk@43044 git-svn-id: http://core.svn.wordpress.org/trunk@42873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d488e773b0
commit
c21c4e25b3
|
@ -749,6 +749,17 @@ span.wp-media-buttons-icon:before {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#privacy-text-box .policy-text h2 {
|
||||||
|
margin: 1.2em 0 1em;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
p.wp-policy-help {
|
||||||
|
font-size: 0.85em;
|
||||||
|
color: #555;
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
11.1 - Custom Fields
|
11.1 - Custom Fields
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -749,6 +749,17 @@ span.wp-media-buttons-icon:before {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#privacy-text-box .policy-text h2 {
|
||||||
|
margin: 1.2em 0 1em;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
p.wp-policy-help {
|
||||||
|
font-size: 0.85em;
|
||||||
|
color: #555;
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
11.1 - Custom Fields
|
11.1 - Custom Fields
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1635,10 +1635,124 @@ final class WP_Privacy_Policy_Content {
|
||||||
* @return string The defauld policy content.
|
* @return string The defauld policy content.
|
||||||
*/
|
*/
|
||||||
public static function get_default_content() {
|
public static function get_default_content() {
|
||||||
$content = '<p>' . __( 'Lorem ipsum dolor sit amet consectetuer id elit enim neque est. Sodales tincidunt Nulla leo penatibus Vestibulum adipiscing est cursus Nam Vestibulum. Orci Vivamus mollis eget pretium dictumst Donec Integer auctor sociis rutrum. Mauris felis Donec neque cursus tellus odio adipiscing netus elit Donec. Vestibulum Cras ligula vitae pretium Curabitur eros Nam Lorem eros non. Sed id mauris justo tristique orci neque eleifend lacus lorem.' ) . "</p>\n";
|
// Start of the suggested privacy policy text.
|
||||||
$content .= '<p>' . __( 'Sed consequat Nullam et vel platea semper id mauris Nam eget. Sem neque a amet eu ipsum id dignissim neque eu pulvinar. Mauris nulla egestas et laoreet penatibus ipsum lobortis convallis congue libero. Tortor nibh pellentesque tellus odio Morbi cursus eros tincidunt tincidunt sociis. Egestas at In Donec mi dignissim Nam rutrum felis metus Maecenas. Sed tellus consectetuer.' ) . "</p>\n";
|
$content =
|
||||||
$content .= '<p>' . __( 'Justo orci pulvinar mauris tincidunt sed Pellentesque dis sapien tempor ligula. Dolor laoreet fames eros accumsan Integer feugiat nec augue Phasellus rutrum. Id Sed facilisi elit mus nulla at dapibus ut enim sociis. Fringilla ridiculus dui justo eu Maecenas ipsum ut aliquet magna non. Id magna adipiscing Vestibulum Curabitur vel pretium ac justo platea neque. Maecenas Donec Quisque urna interdum.' ) . "</p>\n";
|
'<div contenteditable="false">' .
|
||||||
$content .= '<p>' . __( 'Tellus sagittis leo adipiscing ante facilisis Aliquam tellus at at elit. Ut dignissim tempus eu Fusce Vestibulum at eros ante dis tempus. Sed libero orci at id ut pretium metus adipiscing justo malesuada. In tempus vitae commodo libero In neque sagittis turpis In In. Eleifend elit dis ac eros urna auctor semper quis odio pretium. Ut Aenean cursus.' ) . "</p>\n";
|
'<p class="wp-policy-help">' . __( 'Hello,' ) . '</p>' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'This is a template with the suggested text for your privacy policy. We have added the sections you will need, and have included a short description under eash section heading (in italics) to help you get started.' ) . '</p>' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'Please edit the content, and follow the instructions in the descriptions. Then delete the descriptions (the italics text), add any content from your plugins to the matching sections, publish your policy page, and add it to your menu.' ) . '</p>' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'If you are a company that collects more personal data from users, consider asking for a legal advice about your completed policy.' ) . '</p>' .
|
||||||
|
'<hr>' .
|
||||||
|
'</div>' .
|
||||||
|
|
||||||
|
'<h2>' . __( 'Who we are' ) . '</h2>' .
|
||||||
|
'<div contenteditable="false">' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'In this section you should note your site URL, as well as the name of the company, organisation, or individual behind it, and some accurate contact information.' ) . '</p>' .
|
||||||
|
'<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>' .
|
||||||
|
'</div>' .
|
||||||
|
'<p>' . __( 'Our website address is: $1%s.' ) . '</p>' .
|
||||||
|
|
||||||
|
'<h2>' . __( 'What personal data we collect and why we collect it' ) . '</h2>' .
|
||||||
|
'<div contenteditable="false">' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'In this section you should include transactional data, such as purchase information; technical data, such as information about cookies; and personal data, such as user account information.' ) . '</p>' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'You must also note any collection and retention of sensitive personal data.' ) . '</p>' .
|
||||||
|
'<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>' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'Personal data is not just created by a user’s interactions with your site. Personal data is also generated from technical processes such as contact forms, comments, cookies, analytics, and third party embeds.' ) . '</p>' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'By default WprdPress does not collect any personal data about visitors, and only collects the data shown on the User Profile screen fro registered users. However some of your plugins may collect personal data, add the relevant information below.' ) . '</p>' .
|
||||||
|
'</div>' .
|
||||||
|
'<p>' . __( 'If you are a registered user and upload images to the website, you should avoid uploading images with EXIF GPS location data included. Visitors to the website can download and extract any location data from images on the website.' ) . '</p>' .
|
||||||
|
|
||||||
|
'<h3>' . __( 'Contact forms' ) . '</h3>' .
|
||||||
|
'<div contenteditable="false">' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'In this subsection you should note what personal data is captured when someone submits a contact form and how long you keep it for. For example, you may note that you keep contact form submissions for a certain period of time for customer service purposes, but you do not use the information submitted through them for marketing purposes.' ) . '</p>' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'By default WordPress does not include a contact form. Add information from your contact form plugin here, if any.' ) . '</p>' .
|
||||||
|
'</div>' .
|
||||||
|
|
||||||
|
'<h3>' . __( 'Comments' ) . '</h3>' .
|
||||||
|
'<p>' . __( 'When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor’s IP address and browser user agent string to help spam detection.' ) . '</p>' .
|
||||||
|
'<p>' . __( 'An anonymized string created from your email address (also called a hash) may be provided to the Gravatar service to see if you are using it. The Gravatar service privacy policy is available here: https://automattic.com/privacy/. After approval of your comment, your profile picture is visible to the public in the context of your comment.' ) . '</p>' .
|
||||||
|
|
||||||
|
'<h3>' . __( 'Cookies' ) . '</h3>' .
|
||||||
|
'<div contenteditable="false">' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'In this subsection you should list the cookies your web site uses, including those set by your plugins, social media, and analytics. We have provided the cookies which WordPress installs by default.' ) . '</p>' .
|
||||||
|
'</div>' .
|
||||||
|
'<p>' . __( 'If you leave a comment on our site you may opt-in to saving your name, email address and website in cookies. These are convenience cookies allowing us to recognise you as a commenter and pre-fill the comments form. They will persist for one year.' ) . '</p>' .
|
||||||
|
'<p>' . __( 'If you attempt to log in to our 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.' ) . '</p>' .
|
||||||
|
'<p>' . __( 'If you have an account and you log in to this site, we will set up several cookies to save your log in information and some of your screen options. The logged-in cookies last for two days, and the screen options cookies last for a year.' ) . '</p>' .
|
||||||
|
'<p>' . __( 'If you select "Remember Me" these cookies will persist for two weeks. If you log out of your account, the log in cookies will be removed. It is important that you log out if you are using a public computer.' ) . '</p>' .
|
||||||
|
'<p>' . __( 'If you edit or publish an article, 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.' ) . '</p>' .
|
||||||
|
|
||||||
|
'<h3>' . __( 'Embedded content from other websites' ) . '</h3>' .
|
||||||
|
'<p>' . __( 'Embeds are pieces from other websites that are shown on our website. They behave in the exact same way as if the visitor has visited the other website.' ) . '</p>' .
|
||||||
|
'<p>' . __( 'Articles on this site may include embedded content from other websites (e.g. videos, images, articles, etc.).' ) . '</p>' .
|
||||||
|
'<p>' . __( 'These websites may collect data about you, use cookies, embed additional third party tracking, and monitor your interaction with that embedded content, including tracing your interaction with the embedded content if you have an account and are logged in to that website.' ) . '</p>' .
|
||||||
|
|
||||||
|
'<h3>' . __( 'Analytics' ) . '</h3>' .
|
||||||
|
'<div contenteditable="false">' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'In this subsection you should note what analytics package you use, how users can opt out of analytics tracking, and a link to information on how your analytics provider conforms to European data protection law.' ) . '</p>' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'By default WordPress does not collect any analytics data. However many web hosting accounts collect some anonymous analytics data. You may also have installed a WordPress plugin that provides analytics services. In that case, add information from that plugin here.' ) . '</p>' .
|
||||||
|
'</div>' .
|
||||||
|
|
||||||
|
'<h2>' . __( 'Who we share your data with' ) . '</h2>' .
|
||||||
|
'<div contenteditable="false">' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'In this section you should name and list all third party providers with whom you share site data, including partners, SAAS, payment processors, and third party service providers, and note what data you share with them and why. Link to their own privacy notices if possible.' ) . '</p>' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'By default WordPress does not share any personal data with anybody.' ) . '</p>' .
|
||||||
|
'</div>' .
|
||||||
|
|
||||||
|
'<h2>' . __( 'How long we retain your data' ) . '</h2>' .
|
||||||
|
'<div contenteditable="false">' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'In this section you should explain how long you retain personal data collected or processed by the web site. While it is your responsibility to come up with the schedule of how long you keep each dataset for and why you keep it, that information does need to be listed here. For example, you may want to say that you keep contact form entries for six months, analytics records for a year, and customer purchase records for ten years.' ) . '</p>' .
|
||||||
|
'</div>' .
|
||||||
|
'<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>' .
|
||||||
|
'<p>' . __( 'For users that register on our website (if any), we also store the data they provide in their profile. All registered users can see, edit or delete their data at any time except they cannot change their username.' ) . '</p>' .
|
||||||
|
|
||||||
|
'<h2>' . __( 'What rights you have over your data' ) . '</h2>' .
|
||||||
|
'<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.' ) . '</p>' .
|
||||||
|
'<p>' . __( 'Typically for visitors that have left comments the data will be their email address, any IP addresses assigned to them at the time of leaving the comments and the user agent strings of the browsers they used. The rest of the data is public as published by the visitors.' ) . '</p>' .
|
||||||
|
'<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>' .
|
||||||
|
|
||||||
|
'<h2>' . __( 'Where we send your data' ) . '</h2>' .
|
||||||
|
'<div contenteditable="false">' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'In this section you should list all transfers of your site data outside the European Union and describe the means by which that data is safeguarded to European data protection standards. This could include your web hosting, cloud storage, SAAS accounts, or other third party services.' ) . '</p>' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'European data protection law requires data about European residents which is transferred outside the European Union to be safeguarded to the same standards as if the data was in Europe. So in addition to listing where data goes, you should describe how you ensure that these standards are met either by yourself or by your third party providers, whether that is through an agreement such as Privacy Shield, model clauses in your contracts, or binding corporate rules.' ) . '</p>' .
|
||||||
|
'</div>' .
|
||||||
|
'<p>' . __( 'For visitors that leave comments we may send the data to a spam detection service.' ) . '</p>' .
|
||||||
|
|
||||||
|
'<h2>' . __( 'Your contact information' ) . '</h2>' .
|
||||||
|
'<div contenteditable="false">' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'In this section you should provide a contact method for privacy-specific concerns. If you are required to have a Data Protection Officer, list their name and full contact details here as well.' ) . '</p>' .
|
||||||
|
'</div>' .
|
||||||
|
|
||||||
|
'<h2>' . __( 'Additional information' ) . '</h2>' .
|
||||||
|
'<div contenteditable="false">' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'If this is your business website and your business engages in more complex collection or processing of personal data, you should note the following information in your privacy notice in addition to the information we have already discussed.' ) . '</p>' .
|
||||||
|
'</div>' .
|
||||||
|
|
||||||
|
'<h3>' . __( 'How we protect your data' ) . '</h3>' .
|
||||||
|
'<div contenteditable="false">' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'In this section you should explain what measures you have taken to protect your users’ data. This could include technical measures such as encryption; security measures such as 2FA; and human measures such as staff training in data protection. If you have carried out a Privacy Impact Assessment, you can mention it here too.' ) . '</p>' .
|
||||||
|
'</div>' .
|
||||||
|
|
||||||
|
'<h3>' . __( 'What data breach procedures we have in place' ) . '</h3>' .
|
||||||
|
'<div contenteditable="false">' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'In this section you should explain what procedures you have in place to deal with data breaches, either potential or real, such as internal reporting systems, contact mechanisms, or bug bounties.' ) . '</p>' .
|
||||||
|
'</div>' .
|
||||||
|
|
||||||
|
'<h3>' . __( 'What third parties we receive data from' ) . '</h3>' .
|
||||||
|
'<div contenteditable="false">' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'If your web site receives data about users from third parties, including advertisers, this information must be included within the section of your privacy notice dealing with third party data.' ) . '</p>' .
|
||||||
|
'</div>' .
|
||||||
|
|
||||||
|
'<h3>' . __( 'What automated decision making and/or profiling we do with user data' ) . '</h3>' .
|
||||||
|
'<div contenteditable="false">' .
|
||||||
|
'<p class="wp-policy-help">' . __( 'If your web site provides a service which includes automated decision making - for example, allowing customers to apply for credit, or aggregating their data into an advertising profile - you must note that this is taking place, and include information about how that information is used, what decisions are made with that aggregated data, and what rights users have over decisions made without human intervention.' ) . '</p>' .
|
||||||
|
'</div>' .
|
||||||
|
|
||||||
|
'<h3>' . __( 'Industry regulatory disclosure requirements' ) . '</h3>';
|
||||||
|
|
||||||
|
// End of the suggested policy text.
|
||||||
|
|
||||||
|
$content = str_replace( '$1%s', get_bloginfo( 'url', 'display' ), $content );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filters the default content suggested for inclusion in a privacy policy.
|
* Filters the default content suggested for inclusion in a privacy policy.
|
||||||
|
|
|
@ -36,11 +36,17 @@ if ( ! empty( $action ) ) {
|
||||||
'updated'
|
'updated'
|
||||||
);
|
);
|
||||||
} elseif ( 'create-privacy-page' === $action ) {
|
} elseif ( 'create-privacy-page' === $action ) {
|
||||||
|
if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {
|
||||||
|
require_once( ABSPATH . 'wp-admin/includes/misc.php' );
|
||||||
|
}
|
||||||
|
|
||||||
|
$privacy_policy_page_content = WP_Privacy_Policy_Content::get_default_content();
|
||||||
$privacy_policy_page_id = wp_insert_post(
|
$privacy_policy_page_id = wp_insert_post(
|
||||||
array(
|
array(
|
||||||
'post_title' => __( 'Privacy Policy' ),
|
'post_title' => __( 'Privacy Policy' ),
|
||||||
'post_status' => 'draft',
|
'post_status' => 'draft',
|
||||||
'post_type' => 'page',
|
'post_type' => 'page',
|
||||||
|
'post_content' => $privacy_policy_page_content,
|
||||||
),
|
),
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
|
@ -265,6 +265,13 @@ a[data-wplink-url-error]:before {
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Special styling for the suggestes policy text tutorial sections after they have been pasted in the editor. */
|
||||||
|
p.wp-policy-help {
|
||||||
|
font-size: 0.85em;
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WP Views
|
* WP Views
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.0-alpha-43043';
|
$wp_version = '5.0-alpha-43044';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue