Make WordPress Core

Changeset 57741

Timestamp:
02/29/2024 12:15:43 PM (5 months ago)
Author:
swissspidy
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-privacy-policy-content.php

    r57131 r57741  
    467467
    468468        /* translators: Default privacy policy heading. */
    469         $strings[] = '<h2>' . __( 'Who we are' ) . '</h2>';
     469        $strings[] = '<h2>' . __( 'Who we are' ) . '</h2>';
    470470
    471471        if ( $description ) {
     
    495495
    496496        /* translators: Default privacy policy heading. */
    497         $strings[] = '<h2>' . __( 'Comments' ) . '</h2>';
     497        $strings[] = '<h2>' . __( 'Comments' ) . '</h2>';
    498498
    499499        if ( $description ) {
     
    508508
    509509        /* translators: Default privacy policy heading. */
    510         $strings[] = '<h2>' . __( 'Media' ) . '</h2>';
     510        $strings[] = '<h2>' . __( 'Media' ) . '</h2>';
    511511
    512512        if ( $description ) {
     
    526526
    527527        /* translators: Default privacy policy heading. */
    528         $strings[] = '<h2>' . __( 'Cookies' ) . '</h2>';
     528        $strings[] = '<h2>' . __( 'Cookies' ) . '</h2>';
    529529
    530530        if ( $description ) {
     
    544544        if ( ! $description ) {
    545545            /* translators: Default privacy policy heading. */
    546             $strings[] = '<h2>' . __( 'Embedded content from other websites' ) . '</h2>';
     546            $strings[] = '<h2>' . __( 'Embedded content from other websites' ) . '</h2>';
    547547            /* translators: Default privacy policy text. */
    548548            $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>';
     
    561561
    562562        /* translators: Default privacy policy heading. */
    563         $strings[] = '<h2>' . __( 'Who we share your data with' ) . '</h2>';
     563        $strings[] = '<h2>' . __( 'Who we share your data with' ) . '</h2>';
    564564
    565565        if ( $description ) {
     
    574574
    575575        /* translators: Default privacy policy heading. */
    576         $strings[] = '<h2>' . __( 'How long we retain your data' ) . '</h2>';
     576        $strings[] = '<h2>' . __( 'How long we retain your data' ) . '</h2>';
    577577
    578578        if ( $description ) {
     
    587587
    588588        /* translators: Default privacy policy heading. */
    589         $strings[] = '<h2>' . __( 'What rights you have over your data' ) . '</h2>';
     589        $strings[] = '<h2>' . __( 'What rights you have over your data' ) . '</h2>';
    590590
    591591        if ( $description ) {
     
    598598
    599599        /* translators: Default privacy policy heading. */
    600         $strings[] = '<h2>' . __( 'Where your data is sent' ) . '</h2>';
     600        $strings[] = '<h2>' . __( 'Where your data is sent' ) . '</h2>';
    601601
    602602        if ( $description ) {
     
    663663            foreach ( $strings as $key => $string ) {
    664664                if ( str_starts_with( $string, '<p>' ) ) {
    665                     $strings[ $key ] = '<!-- wp:paragraph -->' . $string . '<!-- /wp:paragraph -->';
     665                    $strings[ $key ] = ;
    666666                }
    667667
    668                 if ( str_starts_with( $string, '<h2>' ) ) {
    669                     $strings[ $key ] = '<!-- wp:heading -->' . $string . '<!-- /wp:heading -->';
     668                if ( str_starts_with( $string, '<h2' ) ) {
     669                    $strings[ $key ] = ;
    670670                }
    671671            }
Note: See TracChangeset for help on using the changeset viewer.