WordPress.org

Make WordPress Core

Ticket #51104: 51104.diff

File 51104.diff, 3.4 KB (added by audrasjb, 8 months ago)

Missing translatable strings for placeholders

  • src/wp-content/themes/twentythirteen/inc/block-patterns.php

    diff --git a/src/wp-content/themes/twentythirteen/inc/block-patterns.php b/src/wp-content/themes/twentythirteen/inc/block-patterns.php
    index 051b0d5750..3475b63a4c 100644
    a b if ( function_exists( 'register_block_pattern' ) ) { 
    7272                        'content'    => '<!-- wp:columns {"align":"wide"} -->
    7373                        <div class="wp-block-columns alignwide"><!-- wp:column -->
    7474                        <div class="wp-block-column"><!-- wp:cover {"overlayColor":"yellow"} -->
    75                         <div class="wp-block-cover has-yellow-background-color has-background-dim"><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","placeholder":"Write title…","textColor":"medium-brown","fontSize":"large"} -->
     75                        <div class="wp-block-cover has-yellow-background-color has-background-dim"><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","placeholder":"' . esc_attr__( 'Write title…', 'twentythirteen' ) . '","textColor":"medium-brown","fontSize":"large"} -->
    7676                        <p class="has-text-align-center has-medium-brown-color has-text-color has-large-font-size">' . esc_html__( 'Space', 'twentythirteen' ) . '</p>
    7777                        <!-- /wp:paragraph --></div></div>
    7878                        <!-- /wp:cover --></div>
    if ( function_exists( 'register_block_pattern' ) ) { 
    8080
    8181                        <!-- wp:column -->
    8282                        <div class="wp-block-column"><!-- wp:cover {"url":"' . esc_url( get_template_directory_uri() ) . '/images/block-patterns/torus-interior.jpg","dimRatio":0,"focalPoint":{"x":"0.63","y":"0.33"}} -->
    83                         <div class="wp-block-cover"><img class="wp-block-cover__image-background" alt="" src="' . esc_url( get_template_directory_uri() ) . '/images/block-patterns/torus-interior.jpg" style="object-position:63% 33%" data-object-fit="cover" data-object-position="63% 33%"/><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","placeholder":"Write title…","fontSize":"large"} -->
     83                        <div class="wp-block-cover"><img class="wp-block-cover__image-background" alt="" src="' . esc_url( get_template_directory_uri() ) . '/images/block-patterns/torus-interior.jpg" style="object-position:63% 33%" data-object-fit="cover" data-object-position="63% 33%"/><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","placeholder":"' . esc_attr__( 'Write title…', 'twentythirteen' ) . '","fontSize":"large"} -->
    8484                        <p class="has-text-align-center has-large-font-size"></p>
    8585                        <!-- /wp:paragraph --></div></div>
    8686                        <!-- /wp:cover --></div>
    if ( function_exists( 'register_block_pattern' ) ) { 
    8888
    8989                        <!-- wp:column -->
    9090                        <div class="wp-block-column"><!-- wp:cover {"overlayColor":"yellow"} -->
    91                         <div class="wp-block-cover has-yellow-background-color has-background-dim"><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","placeholder":"Write title…","textColor":"medium-brown","fontSize":"large"} -->
     91                        <div class="wp-block-cover has-yellow-background-color has-background-dim"><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","placeholder":"' . esc_attr__( 'Write title…', 'twentythirteen' ) . '","textColor":"medium-brown","fontSize":"large"} -->
    9292                        <p class="has-text-align-center has-medium-brown-color has-text-color has-large-font-size">' . esc_html__( 'Colonies', 'twentythirteen' ) . '</p>
    9393                        <!-- /wp:paragraph --></div></div>
    9494                        <!-- /wp:cover --></div>