Make WordPress Core

Changeset 59842


Ignore:
Timestamp:
02/20/2025 05:38:03 AM (2 months ago)
Author:
poena
Message:

Twenty Twelve: Update the quote pattern to use the quote block.

This change updates the Left-aligned Large Quote pattern to use the quote block instead of
paragraph blocks.

Props flairwebtechnologies, sabernhardt, karmatosed, wpeople, poena, nithins53, balub, sukhendu2002, dilip2615, itpathsolutions, shraddhagore, shailu25.
Fixes #61765.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwelve/inc/block-patterns.php

    r58031 r59842  
    6868    );
    6969
    70     // Heading and paragraph arranged as a large quote.
     70    // Quote with large paragraph text.
    7171    register_block_pattern(
    7272        'twentytwelve/large-quote',
     
    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 --> <blockquote class="wp-block-quote"><!-- wp:paragraph {"style":{"typography":{"fontSize":"40px","lineHeight":1.5}}} -->
     78                <p style="font-size:40px;line-height:1.5"><strong>' . 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' ) . '</strong></p>
     79                <!-- /wp:paragraph --><cite>' . esc_html__( '&mdash;  Albert Einstein', 'twentytwelve' ) . '</cite></blockquote>
     80                <!-- /wp:quote -->',
    8281        )
    8382    );
Note: See TracChangeset for help on using the changeset viewer.