Changeset 43203 for trunk/src/wp-admin/includes/misc.php
- Timestamp:
- 05/09/2018 08:50:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/misc.php
r43184 r43203 1558 1558 printf( 1559 1559 __( 'Need help putting together your new Privacy Policy page? %s for recommendations on what content to include, along with policies suggested by your plugins and theme.' ), 1560 '<a href="' . admin_url( ' privacy.php?wp-suggested-policy-content=1' ) . '" target="_blank">' . __( 'Check out our guide' ) . '</a>' );1560 '<a href="' . admin_url( 'tools.php?wp-privacy-policy-guide=1' ) . '" target="_blank">' . __( 'Check out our guide' ) . '</a>' ); 1561 1561 ?> 1562 1562 </p> … … 1582 1582 1583 1583 foreach ( $content_array as $section ) { 1584 $class = $meta = '';1584 $class = $meta = $removed = ''; 1585 1585 1586 1586 if ( ! empty( $section['removed'] ) ) { … … 1588 1588 $date = date_i18n( $date_format, $section['removed'] ); 1589 1589 $meta = sprintf( __( 'Removed %s.' ), $date ); 1590 1591 $removed = __( 'You deactivated this plugin on %s and may no longer need this policy.' ); 1592 $removed = '<div class="error inline"><p>' . sprintf( $removed, $date ) . '</p></div>'; 1590 1593 } elseif ( ! empty( $section['updated'] ) ) { 1591 1594 $class = ' text-updated'; … … 1603 1606 1604 1607 $content .= '<div class="privacy-text-section' . $class . '">'; 1608 $content .= '<a id="' . $toc_id . '"> </a>'; 1605 1609 $content .= '<h2>' . sprintf( __( 'Source: %s' ), $plugin_name ) . '</h2>'; 1606 $content .= '<a id="' . $toc_id . '"></a>';1610 $content .= $removed; 1607 1611 1608 1612 $content .= '<div class="policy-text">' . $section['policy_text'] . '</div>'; … … 1655 1659 * @since 4.9.6 1656 1660 * 1661 * @param bool $descr Whether to include the descriptions undet the section headings. Default false. 1657 1662 * @return string The default policy content. 1658 1663 */ 1659 public static function get_default_content( ) {1660 $suggested_text = '<strong class="privacy-policy-tutorial">' . __( 'Suggested text:' ) . ' </strong>';1664 public static function get_default_content( $descr = false ) { 1665 $suggested_text = $descr ? '<strong class="privacy-policy-tutorial">' . __( 'Suggested text:' ) . ' </strong>' : ''; 1661 1666 1662 1667 // Start of the suggested privacy policy text. 1663 1668 $content = 1664 1669 '<div class="wp-suggested-text">' . 1665 '<h2>' . __( 'Who we are' ) . '</h2>' . 1670 '<h2>' . __( 'Who we are' ) . '</h2>'; 1671 $descr && $content .= 1666 1672 '<p class="privacy-policy-tutorial">' . __( '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>' . 1667 '<p class="privacy-policy-tutorial">' . __( '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>' .1668 1673 '<p class="privacy-policy-tutorial">' . __( '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>'; 1674 $content .= 1669 1675 /* translators: %s Site URL */ 1670 1676 '<p>' . $suggested_text . sprintf( __( 'Our website address is: %s.' ), get_bloginfo( 'url', 'display' ) ) . '</p>' . 1671 1677 1672 '<h2>' . __( 'What personal data we collect and why we collect it' ) . '</h2>' . 1678 '<h2>' . __( 'What personal data we collect and why we collect it' ) . '</h2>'; 1679 $descr && $content .= 1673 1680 '<p class="privacy-policy-tutorial">' . __( 'In this section you should note what personal data you collect from users and site visitors. This may include personal data, such as name, email address, personal account preferences; transactional data, such as purchase information; and technical data, such as information about cookies.' ) . '</p>' . 1674 1681 '<p class="privacy-policy-tutorial">' . __( 'You should also note any collection and retention of sensitive personal data, such as data concerning health.' ) . '</p>' . 1675 1682 '<p class="privacy-policy-tutorial">' . __( '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>' . 1676 1683 '<p class="privacy-policy-tutorial">' . __( '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>' . 1677 '<p class="privacy-policy-tutorial">' . __( 'By default WordPress does not collect any personal data about visitors, and only collects the data shown on the User Profile screen from registered users. However some of your plugins may collect personal data. You should add the relevant information below.' ) . '</p>' . 1678 1679 '<h3>' . __( 'Comments' ) . '</h3>' . 1680 '<p class="privacy-policy-tutorial">' . __( 'In this subsection you should note what information is captured through comments. We have noted the data which WordPress collects by default.' ) . '</p>' . 1684 '<p class="privacy-policy-tutorial">' . __( 'By default WordPress does not collect any personal data about visitors, and only collects the data shown on the User Profile screen from registered users. However some of your plugins may collect personal data. You should add the relevant information below.' ) . '</p>'; 1685 1686 $content .= 1687 '<h3>' . __( 'Comments' ) . '</h3>'; 1688 $descr && $content .= 1689 '<p class="privacy-policy-tutorial">' . __( 'In this subsection you should note what information is captured through comments. We have noted the data which WordPress collects by default.' ) . '</p>'; 1690 $content .= 1681 1691 '<p>' . $suggested_text . __( '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>' . 1682 1692 '<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>' . 1683 1693 1684 '<h3>' . __( 'Media' ) . '</h3>' . 1685 '<p class="privacy-policy-tutorial">' . __( 'In this subsection you should note what information may be disclosed by users who can upload media files. All uploaded files are usually publicly accessible.' ) . '</p>' . 1694 '<h3>' . __( 'Media' ) . '</h3>'; 1695 $descr && $content .= 1696 '<p class="privacy-policy-tutorial">' . __( 'In this subsection you should note what information may be disclosed by users who can upload media files. All uploaded files are usually publicly accessible.' ) . '</p>'; 1697 $content .= 1686 1698 '<p>' . $suggested_text . __( 'If you upload images to the website, you should avoid uploading images with embedded location data (EXIF GPS) included. Visitors to the website can download and extract any location data from images on the website.' ) . '</p>' . 1687 1699 1688 '<h3>' . __( 'Contact forms' ) . '</h3>' . 1689 '<p class="privacy-policy-tutorial">' . __( 'By default, WordPress does not include a contact form. If you use a contact form plugin, use this subsection to note what personal data is captured when someone submits a contact form, and how long you keep it. For example, you may note that you keep contact form submissions for a certain period for customer service purposes, but you do not use the information submitted through them for marketing purposes.' ) . '</p>' . 1690 1691 '<h3>' . __( 'Cookies' ) . '</h3>' . 1692 '<p class="privacy-policy-tutorial">' . __( '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>' . 1700 '<h3>' . __( 'Contact forms' ) . '</h3>'; 1701 $descr && $content .= 1702 '<p class="privacy-policy-tutorial">' . __( 'By default, WordPress does not include a contact form. If you use a contact form plugin, use this subsection to note what personal data is captured when someone submits a contact form, and how long you keep it. For example, you may note that you keep contact form submissions for a certain period for customer service purposes, but you do not use the information submitted through them for marketing purposes.' ) . '</p>'; 1703 1704 $content .= 1705 '<h3>' . __( 'Cookies' ) . '</h3>'; 1706 $descr && $content .= 1707 '<p class="privacy-policy-tutorial">' . __( '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>'; 1708 $content .= 1693 1709 '<p>' . $suggested_text . __( 'If you leave a comment on our site you may opt-in to saving your name, email address and website in cookies. These are for your convenience so that you do not have to fill in your details again when you leave another comment. These cookies will last for one year.' ) . '</p>' . 1694 1710 '<p>' . __( 'If you have an account and you log in to this site, we will set a temporary cookie to determine if your browser accepts cookies. This cookie contains no personal data and is discarded when you close your browser.' ) . '</p>' . … … 1700 1716 '<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>' . 1701 1717 1702 '<h3>' . __( 'Analytics' ) . '</h3>' . 1718 '<h3>' . __( 'Analytics' ) . '</h3>'; 1719 $descr && $content .= 1703 1720 '<p class="privacy-policy-tutorial">' . __( 'In this subsection you should note what analytics package you use, how users can opt out of analytics tracking, and a link to your analytics provider’s privacy policy, if any.' ) . '</p>' . 1704 '<p class="privacy-policy-tutorial">' . __( '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>' . 1705 1706 '<h2>' . __( 'Who we share your data with' ) . '</h2>' . 1721 '<p class="privacy-policy-tutorial">' . __( '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>'; 1722 1723 $content .= 1724 '<h2>' . __( 'Who we share your data with' ) . '</h2>'; 1725 $descr && $content .= 1707 1726 '<p class="privacy-policy-tutorial">' . __( 'In this section you should name and list all third party providers with whom you share site data, including partners, cloud-based services, payment processors, and third party service providers, and note what data you share with them and why. Link to their own privacy policies if possible.' ) . '</p>' . 1708 '<p class="privacy-policy-tutorial">' . __( 'By default WordPress does not share any personal data with anyone.' ) . '</p>' . 1709 1710 '<h2>' . __( 'How long we retain your data' ) . '</h2>' . 1711 '<p class="privacy-policy-tutorial">' . __( '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>' . 1727 '<p class="privacy-policy-tutorial">' . __( 'By default WordPress does not share any personal data with anyone.' ) . '</p>'; 1728 1729 $content .= 1730 '<h2>' . __( 'How long we retain your data' ) . '</h2>'; 1731 $descr && $content .= 1732 '<p class="privacy-policy-tutorial">' . __( '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>'; 1733 $content .= 1712 1734 '<p>' . $suggested_text . __( 'If you leave a comment, the comment and its metadata are retained indefinitely. This is so we can recognize and approve any follow-up comments automatically instead of holding them in a moderation queue.' ) . '</p>' . 1713 1735 '<p>' . __( 'For users that register on our website (if any), we also store the personal information they provide in their user profile. All users can see, edit, or delete their personal information at any time (except they cannot change their username). Website administrators can also see and edit that information.' ) . '</p>' . 1714 1736 1715 '<h2>' . __( 'What rights you have over your data' ) . '</h2>' . 1716 '<p class="privacy-policy-tutorial">' . __( 'In this section you should explain what rights your users have over their data and how they can invoke those rights.' ) . '</p>' . 1737 '<h2>' . __( 'What rights you have over your data' ) . '</h2>'; 1738 $descr && $content .= 1739 '<p class="privacy-policy-tutorial">' . __( 'In this section you should explain what rights your users have over their data and how they can invoke those rights.' ) . '</p>'; 1740 $content .= 1717 1741 '<p>' . $suggested_text . __( 'If you have an account on this site, or have left comments, you can request to receive an exported file of the personal data we hold about you, including any data you have provided to us. You can also request that we erase any personal data we hold about you. This does not include any data we are obliged to keep for administrative, legal, or security purposes.' ) . '</p>' . 1718 1742 1719 '<h2>' . __( 'Where we send your data' ) . '</h2>' . 1743 '<h2>' . __( 'Where we send your data' ) . '</h2>'; 1744 $descr && $content .= 1720 1745 '<p class="privacy-policy-tutorial">' . __( '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, or other third party services.' ) . '</p>' . 1721 '<p class="privacy-policy-tutorial">' . __( '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>' . 1722 '<p>' . $suggested_text . __( 'Visitor comments may be checked through an automated spam detection service.' ) . '</p>' . 1723 1724 '<h2>' . __( 'Your contact information' ) . '</h2>' . 1725 '<p class="privacy-policy-tutorial">' . __( '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>' . 1726 1727 '<h2>' . __( 'Additional information' ) . '</h2>' . 1728 '<p class="privacy-policy-tutorial">' . __( 'If you use your site for commercial purposes and you engage in more complex collection or processing of personal data, you should note the following information in your privacy policy in addition to the information we have already discussed.' ) . '</p>' . 1729 1730 '<h3>' . __( 'How we protect your data' ) . '</h3>' . 1731 '<p class="privacy-policy-tutorial">' . __( '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 two factor authentication; and measures such as staff training in data protection. If you have carried out a Privacy Impact Assessment, you can mention it here too.' ) . '</p>' . 1732 1733 '<h3>' . __( 'What data breach procedures we have in place' ) . '</h3>' . 1734 '<p class="privacy-policy-tutorial">' . __( '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>' . 1735 1736 '<h3>' . __( 'What third parties we receive data from' ) . '</h3>' . 1737 '<p class="privacy-policy-tutorial">' . __( 'If your web site receives data about users from third parties, including advertisers, this information must be included within the section of your privacy policy dealing with third party data.' ) . '</p>' . 1738 1739 '<h3>' . __( 'What automated decision making and/or profiling we do with user data' ) . '</h3>' . 1740 '<p class="privacy-policy-tutorial">' . __( '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>' . 1741 1742 '<h3>' . __( 'Industry regulatory disclosure requirements' ) . '</h3>' . 1743 '<p class="privacy-policy-tutorial">' . __( '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>' . 1746 '<p class="privacy-policy-tutorial">' . __( '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>'; 1747 $content .= 1748 '<p>' . $suggested_text . __( 'Visitor comments may be checked through an automated spam detection service.' ) . '</p>'; 1749 1750 '<h2>' . __( 'Your contact information' ) . '</h2>'; 1751 $descr && $content .= 1752 '<p class="privacy-policy-tutorial">' . __( '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>'; 1753 1754 $content .= 1755 '<h2>' . __( 'Additional information' ) . '</h2>'; 1756 $descr && $content .= 1757 '<p class="privacy-policy-tutorial">' . __( 'If you use your site for commercial purposes and you engage in more complex collection or processing of personal data, you should note the following information in your privacy policy in addition to the information we have already discussed.' ) . '</p>'; 1758 1759 $content .= 1760 '<h3>' . __( 'How we protect your data' ) . '</h3>'; 1761 $descr && $content .= 1762 '<p class="privacy-policy-tutorial">' . __( '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 two factor authentication; and measures such as staff training in data protection. If you have carried out a Privacy Impact Assessment, you can mention it here too.' ) . '</p>'; 1763 1764 $content .= 1765 '<h3>' . __( 'What data breach procedures we have in place' ) . '</h3>'; 1766 $descr && $content .= 1767 '<p class="privacy-policy-tutorial">' . __( '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>'; 1768 1769 $content .= 1770 '<h3>' . __( 'What third parties we receive data from' ) . '</h3>'; 1771 $descr && $content .= 1772 '<p class="privacy-policy-tutorial">' . __( 'If your web site receives data about users from third parties, including advertisers, this information must be included within the section of your privacy policy dealing with third party data.' ) . '</p>'; 1773 1774 $content .= 1775 '<h3>' . __( 'What automated decision making and/or profiling we do with user data' ) . '</h3>'; 1776 $descr && $content .= 1777 '<p class="privacy-policy-tutorial">' . __( '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>'; 1778 1779 $content .= 1780 '<h3>' . __( 'Industry regulatory disclosure requirements' ) . '</h3>'; 1781 $descr && $content .= 1782 '<p class="privacy-policy-tutorial">' . __( '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>'; 1783 $content .= 1744 1784 '</div>'; 1745 1785 // End of the suggested privacy policy text. 1746 1786 1747 1787 /** … … 1761 1801 */ 1762 1802 public static function add_suggested_content() { 1763 $content = self::get_default_content( );1803 $content = self::get_default_content( true ); 1764 1804 wp_add_privacy_policy_content( __( 'WordPress' ), $content ); 1765 1805 }
Note: See TracChangeset
for help on using the changeset viewer.