Make WordPress Core

Ticket #61765: 61765.diff

File 61765.diff, 3.4 KB (added by iflairwebtechnologies, 6 weeks ago)

Review quote pattern issue

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

    diff --git a/src/wp-content/themes/twentytwelve/inc/block-patterns.php b/src/wp-content/themes/twentytwelve/inc/block-patterns.php
    index 430b6584aa..3ae673971a 100644
    a b if ( function_exists( 'register_block_pattern' ) ) { 
    7474                        'title'         => esc_html__( 'Left-aligned Large Quote', 'twentytwelve' ),
    7575                        'categories'    => array( 'twentytwelve' ),
    7676                        'viewportWidth' => 700,
    77                         'content'       => '<!-- wp:paragraph {"style":{"typography":{"fontSize":"40px","lineHeight":1.5}}} -->
    78                                 <p style="font-size:40px;line-height:1.5"><strong><em>' . esc_html__( '"Few people are capable of expressing with equanimity opinions which differ from the prejudices of their social environment. Most people are even incapable of forming such opinions."', 'twentytwelve' ) . '</em></strong></p>
    79                                 <!-- /wp:paragraph --><!-- wp:paragraph -->
    80                                 <p><em>' . esc_html__( 'ΓÇö  Albert Einstein', 'twentytwelve' ) . '</em></p>
    81                                 <!-- /wp:paragraph -->',
     77                        'content'       => '<!-- wp:quote {"style":{"typography":{"fontSize":"40px","lineHeight":1.5}}} -->
     78                                 <blockquote class="wp-block-quote alignleft large-quote"><p style="font-size:40px;line-height:1.5"><strong><em>' . esc_html__( '"Few people are capable of expressing with equanimity opinions which differ from the prejudices of their social environment. Most people are even incapable of forming such opinions."', 'twentytwelve' ) . '</em></strong></p>
     79                                <!-- /wp:quote --><!-- wp:quote -->
     80                                <p><cite>' . esc_html__( 'ΓÇö  Albert Einstein', 'twentytwelve' ) . '</cite></p></blockquote>
     81                                <!-- /wp:quote -->',
    8282                )
    8383        );