wp/wp-admin/includes/class-wp-privacy-policy-content.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
   123 
   123 
   124 	/**
   124 	/**
   125 	 * Output a warning when some privacy info has changed.
   125 	 * Output a warning when some privacy info has changed.
   126 	 *
   126 	 *
   127 	 * @since 4.9.6
   127 	 * @since 4.9.6
       
   128 	 *
       
   129 	 * @global WP_Post $post Global post object.
   128 	 */
   130 	 */
   129 	public static function policy_text_changed_notice() {
   131 	public static function policy_text_changed_notice() {
   130 		global $post;
   132 		global $post;
   131 
   133 
   132 		$screen = get_current_screen()->id;
   134 		$screen = get_current_screen()->id;
   300 	/**
   302 	/**
   301 	 * Add a notice with a link to the guide when editing the privacy policy page.
   303 	 * Add a notice with a link to the guide when editing the privacy policy page.
   302 	 *
   304 	 *
   303 	 * @since 4.9.6
   305 	 * @since 4.9.6
   304 	 * @since 5.0.0 The `$post` parameter was made optional.
   306 	 * @since 5.0.0 The `$post` parameter was made optional.
       
   307 	 *
       
   308 	 * @global WP_Post $post Global post object.
   305 	 *
   309 	 *
   306 	 * @param WP_Post|null $post The currently edited post. Default null.
   310 	 * @param WP_Post|null $post The currently edited post. Default null.
   307 	 */
   311 	 */
   308 	public static function notice( $post = null ) {
   312 	public static function notice( $post = null ) {
   309 		if ( is_null( $post ) ) {
   313 		if ( is_null( $post ) ) {
   585 			/* translators: Default privacy policy text. */
   589 			/* translators: Default privacy policy text. */
   586 			$strings[] = '<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>';
   590 			$strings[] = '<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>';
   587 		}
   591 		}
   588 
   592 
   589 		/* translators: Default privacy policy heading. */
   593 		/* translators: Default privacy policy heading. */
   590 		$strings[] = '<h2>' . __( 'Where we send your data' ) . '</h2>';
   594 		$strings[] = '<h2>' . __( 'Where your data is sent' ) . '</h2>';
   591 
   595 
   592 		if ( $description ) {
   596 		if ( $description ) {
   593 			/* translators: Privacy policy tutorial. */
   597 			/* translators: Privacy policy tutorial. */
   594 			$strings[] = '<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>';
   598 			$strings[] = '<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>';
   595 			/* translators: Privacy policy tutorial. */
   599 			/* translators: Privacy policy tutorial. */