From d7e8ec62c5448c5f05cb5f59175eb85e1eb7c5ad Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 11 May 2018 15:07:00 +0000 Subject: [PATCH] Privacy: exclude the wrapper from the default policy content. Fixes #44048. git-svn-id: https://develop.svn.wordpress.org/trunk@43242 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/misc.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/includes/misc.php b/src/wp-admin/includes/misc.php index e9d7641595..a8600f1d24 100644 --- a/src/wp-admin/includes/misc.php +++ b/src/wp-admin/includes/misc.php @@ -1691,10 +1691,12 @@ final class WP_Privacy_Policy_Content { */ public static function get_default_content( $descr = false ) { $suggested_text = $descr ? '' . __( 'Suggested text:' ) . ' ' : ''; + $content = ''; // Start of the suggested privacy policy text. - $content = - '
' . + $descr && $content .= + '
'; + $content .= '

' . __( 'Who we are' ) . '

'; $descr && $content .= '

' . __( '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.' ) . '

' . @@ -1807,8 +1809,7 @@ final class WP_Privacy_Policy_Content { $content .= '

' . __( 'Industry regulatory disclosure requirements' ) . '

'; $descr && $content .= - '

' . __( '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.' ) . '

'; - $content .= + '

' . __( '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.' ) . '

' . '
'; // End of the suggested privacy policy text.