mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 22:56:19 +01:00
Privacy: Update default privacy page content to use latest block markup.
Avoids “Updated Block” warnings being logged to the console. Props 254volkan, swissspidy. Fixes #60530. Built from https://develop.svn.wordpress.org/trunk@57741 git-svn-id: http://core.svn.wordpress.org/trunk@57242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f67cb7370e
commit
2cf42cec66
@ -466,7 +466,7 @@ final class WP_Privacy_Policy_Content {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* translators: Default privacy policy heading. */
|
/* translators: Default privacy policy heading. */
|
||||||
$strings[] = '<h2>' . __( 'Who we are' ) . '</h2>';
|
$strings[] = '<h2 class="wp-block-heading">' . __( 'Who we are' ) . '</h2>';
|
||||||
|
|
||||||
if ( $description ) {
|
if ( $description ) {
|
||||||
/* translators: Privacy policy tutorial. */
|
/* translators: Privacy policy tutorial. */
|
||||||
@ -494,7 +494,7 @@ final class WP_Privacy_Policy_Content {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* translators: Default privacy policy heading. */
|
/* translators: Default privacy policy heading. */
|
||||||
$strings[] = '<h2>' . __( 'Comments' ) . '</h2>';
|
$strings[] = '<h2 class="wp-block-heading">' . __( 'Comments' ) . '</h2>';
|
||||||
|
|
||||||
if ( $description ) {
|
if ( $description ) {
|
||||||
/* translators: Privacy policy tutorial. */
|
/* translators: Privacy policy tutorial. */
|
||||||
@ -507,7 +507,7 @@ final class WP_Privacy_Policy_Content {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* translators: Default privacy policy heading. */
|
/* translators: Default privacy policy heading. */
|
||||||
$strings[] = '<h2>' . __( 'Media' ) . '</h2>';
|
$strings[] = '<h2 class="wp-block-heading">' . __( 'Media' ) . '</h2>';
|
||||||
|
|
||||||
if ( $description ) {
|
if ( $description ) {
|
||||||
/* translators: Privacy policy tutorial. */
|
/* translators: Privacy policy tutorial. */
|
||||||
@ -525,7 +525,7 @@ final class WP_Privacy_Policy_Content {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* translators: Default privacy policy heading. */
|
/* translators: Default privacy policy heading. */
|
||||||
$strings[] = '<h2>' . __( 'Cookies' ) . '</h2>';
|
$strings[] = '<h2 class="wp-block-heading">' . __( 'Cookies' ) . '</h2>';
|
||||||
|
|
||||||
if ( $description ) {
|
if ( $description ) {
|
||||||
/* translators: Privacy policy tutorial. */
|
/* translators: Privacy policy tutorial. */
|
||||||
@ -543,7 +543,7 @@ final class WP_Privacy_Policy_Content {
|
|||||||
|
|
||||||
if ( ! $description ) {
|
if ( ! $description ) {
|
||||||
/* translators: Default privacy policy heading. */
|
/* translators: Default privacy policy heading. */
|
||||||
$strings[] = '<h2>' . __( 'Embedded content from other websites' ) . '</h2>';
|
$strings[] = '<h2 class="wp-block-heading">' . __( 'Embedded content from other websites' ) . '</h2>';
|
||||||
/* translators: Default privacy policy text. */
|
/* translators: Default privacy policy text. */
|
||||||
$strings[] = '<p>' . $suggested_text . __( 'Articles on this site may include embedded content (e.g. videos, images, articles, etc.). Embedded content from other websites behaves in the exact same way as if the visitor has visited the other website.' ) . '</p>';
|
$strings[] = '<p>' . $suggested_text . __( 'Articles on this site may include embedded content (e.g. videos, images, articles, etc.). Embedded content from other websites behaves in the exact same way as if the visitor has visited the other website.' ) . '</p>';
|
||||||
/* translators: Default privacy policy text. */
|
/* translators: Default privacy policy text. */
|
||||||
@ -560,7 +560,7 @@ final class WP_Privacy_Policy_Content {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* translators: Default privacy policy heading. */
|
/* translators: Default privacy policy heading. */
|
||||||
$strings[] = '<h2>' . __( 'Who we share your data with' ) . '</h2>';
|
$strings[] = '<h2 class="wp-block-heading">' . __( 'Who we share your data with' ) . '</h2>';
|
||||||
|
|
||||||
if ( $description ) {
|
if ( $description ) {
|
||||||
/* translators: Privacy policy tutorial. */
|
/* translators: Privacy policy tutorial. */
|
||||||
@ -573,7 +573,7 @@ final class WP_Privacy_Policy_Content {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* translators: Default privacy policy heading. */
|
/* translators: Default privacy policy heading. */
|
||||||
$strings[] = '<h2>' . __( 'How long we retain your data' ) . '</h2>';
|
$strings[] = '<h2 class="wp-block-heading">' . __( 'How long we retain your data' ) . '</h2>';
|
||||||
|
|
||||||
if ( $description ) {
|
if ( $description ) {
|
||||||
/* translators: Privacy policy tutorial. */
|
/* translators: Privacy policy tutorial. */
|
||||||
@ -586,7 +586,7 @@ final class WP_Privacy_Policy_Content {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* translators: Default privacy policy heading. */
|
/* translators: Default privacy policy heading. */
|
||||||
$strings[] = '<h2>' . __( 'What rights you have over your data' ) . '</h2>';
|
$strings[] = '<h2 class="wp-block-heading">' . __( 'What rights you have over your data' ) . '</h2>';
|
||||||
|
|
||||||
if ( $description ) {
|
if ( $description ) {
|
||||||
/* translators: Privacy policy tutorial. */
|
/* translators: Privacy policy tutorial. */
|
||||||
@ -597,7 +597,7 @@ final class WP_Privacy_Policy_Content {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* translators: Default privacy policy heading. */
|
/* translators: Default privacy policy heading. */
|
||||||
$strings[] = '<h2>' . __( 'Where your data is sent' ) . '</h2>';
|
$strings[] = '<h2 class="wp-block-heading">' . __( 'Where your data is sent' ) . '</h2>';
|
||||||
|
|
||||||
if ( $description ) {
|
if ( $description ) {
|
||||||
/* translators: Privacy policy tutorial. */
|
/* translators: Privacy policy tutorial. */
|
||||||
@ -662,11 +662,11 @@ final class WP_Privacy_Policy_Content {
|
|||||||
if ( $blocks ) {
|
if ( $blocks ) {
|
||||||
foreach ( $strings as $key => $string ) {
|
foreach ( $strings as $key => $string ) {
|
||||||
if ( str_starts_with( $string, '<p>' ) ) {
|
if ( str_starts_with( $string, '<p>' ) ) {
|
||||||
$strings[ $key ] = '<!-- wp:paragraph -->' . $string . '<!-- /wp:paragraph -->';
|
$strings[ $key ] = "<!-- wp:paragraph -->\n" . $string . "\n<!-- /wp:paragraph -->\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( str_starts_with( $string, '<h2>' ) ) {
|
if ( str_starts_with( $string, '<h2 ' ) ) {
|
||||||
$strings[ $key ] = '<!-- wp:heading -->' . $string . '<!-- /wp:heading -->';
|
$strings[ $key ] = "<!-- wp:heading -->\n" . $string . "\n<!-- /wp:heading -->\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.5-beta3-57740';
|
$wp_version = '6.5-beta3-57741';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
Block a user