Changeset 57741
- Timestamp:
- 02/29/2024 12:15:43 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-privacy-policy-content.php
r57131 r57741 467 467 468 468 /* translators: Default privacy policy heading. */ 469 $strings[] = '<h2 >' . __( 'Who we are' ) . '</h2>';469 $strings[] = '<h2 class="wp-block-heading">' . __( 'Who we are' ) . '</h2>'; 470 470 471 471 if ( $description ) { … … 495 495 496 496 /* translators: Default privacy policy heading. */ 497 $strings[] = '<h2 >' . __( 'Comments' ) . '</h2>';497 $strings[] = '<h2 class="wp-block-heading">' . __( 'Comments' ) . '</h2>'; 498 498 499 499 if ( $description ) { … … 508 508 509 509 /* translators: Default privacy policy heading. */ 510 $strings[] = '<h2 >' . __( 'Media' ) . '</h2>';510 $strings[] = '<h2 class="wp-block-heading">' . __( 'Media' ) . '</h2>'; 511 511 512 512 if ( $description ) { … … 526 526 527 527 /* translators: Default privacy policy heading. */ 528 $strings[] = '<h2 >' . __( 'Cookies' ) . '</h2>';528 $strings[] = '<h2 class="wp-block-heading">' . __( 'Cookies' ) . '</h2>'; 529 529 530 530 if ( $description ) { … … 544 544 if ( ! $description ) { 545 545 /* translators: Default privacy policy heading. */ 546 $strings[] = '<h2 >' . __( 'Embedded content from other websites' ) . '</h2>';546 $strings[] = '<h2 class="wp-block-heading">' . __( 'Embedded content from other websites' ) . '</h2>'; 547 547 /* translators: Default privacy policy text. */ 548 548 $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>'; … … 561 561 562 562 /* translators: Default privacy policy heading. */ 563 $strings[] = '<h2 >' . __( 'Who we share your data with' ) . '</h2>';563 $strings[] = '<h2 class="wp-block-heading">' . __( 'Who we share your data with' ) . '</h2>'; 564 564 565 565 if ( $description ) { … … 574 574 575 575 /* translators: Default privacy policy heading. */ 576 $strings[] = '<h2 >' . __( 'How long we retain your data' ) . '</h2>';576 $strings[] = '<h2 class="wp-block-heading">' . __( 'How long we retain your data' ) . '</h2>'; 577 577 578 578 if ( $description ) { … … 587 587 588 588 /* translators: Default privacy policy heading. */ 589 $strings[] = '<h2 >' . __( 'What rights you have over your data' ) . '</h2>';589 $strings[] = '<h2 class="wp-block-heading">' . __( 'What rights you have over your data' ) . '</h2>'; 590 590 591 591 if ( $description ) { … … 598 598 599 599 /* translators: Default privacy policy heading. */ 600 $strings[] = '<h2 >' . __( 'Where your data is sent' ) . '</h2>';600 $strings[] = '<h2 class="wp-block-heading">' . __( 'Where your data is sent' ) . '</h2>'; 601 601 602 602 if ( $description ) { … … 663 663 foreach ( $strings as $key => $string ) { 664 664 if ( str_starts_with( $string, '<p>' ) ) { 665 $strings[ $key ] = '<!-- wp:paragraph -->' . $string . '<!-- /wp:paragraph -->';665 $strings[ $key ] = "<!-- wp:paragraph -->\n" . $string . "\n<!-- /wp:paragraph -->\n"; 666 666 } 667 667 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 ] = "<!-- wp:heading -->\n" . $string . "\n<!-- /wp:heading -->\n"; 670 670 } 671 671 }
Note: See TracChangeset
for help on using the changeset viewer.