Make WordPress Core

Ticket #56717: 56717.diff

File 56717.diff, 2.3 KB (added by Alberuni Azad., 19 months ago)

Created patch

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

    diff --git a/src/wp-content/themes/twentyeleven/inc/block-patterns.php b/src/wp-content/themes/twentyeleven/inc/block-patterns.php
    index 21c13dfed7..b5f1d9350a 100644
    a b if ( function_exists( 'register_block_pattern' ) ) { 
    3939                                <!-- wp:columns -->
    4040                                <div class="wp-block-columns"><!-- wp:column -->
    4141                                <div class="wp-block-column"><!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} -->
    42                                 <figure class="wp-block-image size-large"><img src="' . get_template_directory_uri() . '/images/patterns/pattern-flower.jpg" alt="' . esc_attr( 'A yellow flower against a dark background.', 'twentyeleven' ) . '" /></figure>
     42                                <figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/images/patterns/pattern-flower.jpg" alt="' . esc_attr( 'A yellow flower against a dark background.', 'twentyeleven' ) . '" /></figure>
    4343                                <!-- /wp:image -->
    4444                                <!-- wp:paragraph {"dropCap":true} -->
    4545                                <p class="has-drop-cap">' . esc_html__( 'This is just an example post to showcase the featured post section on the showcase page. Who doesn&#8217;t like flowers? I like flowers. Nullam hendrerit enim nunc. Vestibulum eget nulla magna! Fusce lobortis neque eu neque egestas tincidunt. Duis elementum consequat lorem, in eleifend justo mollis at. Nam quis adipiscing magna. Duis adipiscing est ac nibh feugiat rhoncus. Donec non lorem felis, eget commodo purus.', 'twentyeleven' ) . '</p>
    if ( function_exists( 'register_block_pattern' ) ) { 
    117117                                <!-- /wp:heading --><!-- wp:columns -->
    118118                                <div class="wp-block-columns"><!-- wp:column -->
    119119                                <div class="wp-block-column"><!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} -->
    120                                 <figure class="wp-block-image size-large"><img src="' . get_template_directory_uri() . '/images/patterns/pattern-woman.jpg" alt="' . esc_attr( 'Photo of a woman.', 'twentyeleven' ) . '" /></figure>
     120                                <figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() . '/images/patterns/pattern-woman.jpg" alt="' . esc_attr( 'Photo of a woman.', 'twentyeleven' ) . '" /></figure>
    121121                                <!-- /wp:image --></div>
    122122                                <!-- /wp:column -->
    123123                                <!-- wp:column -->