Make WordPress Core


Ignore:
Timestamp:
07/07/2021 05:29:48 PM (4 years ago)
Author:
desrosj
Message:

Bundled Themes: Update block patterns to match the latest versions of core/* blocks.

When using the post editor with a bundled theme active, there will be a number of console.info notices printed to the browser’s console.

These notices are caused by block patterns containing outdated and deprecated versions of core/* blocks. Before rendering the blocks, they need to be updated, and this process outputs information to the console.

Props ntsekouras.
Fixes #53617.

File:
1 edited

Legend:

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

    r51323 r51372  
    2929            'categories' => array( 'twentysixteen' ),
    3030            'content'    => '<!-- wp:group {"align":"full","backgroundColor":"background"} -->
    31             <div class="wp-block-group alignfull has-background-background-color has-background"><div class="wp-block-group__inner-container"><!-- wp:spacer {"height":60} -->
     31            <div class="wp-block-group alignfull has-background-background-color has-background"><!-- wp:spacer {"height":60} -->
    3232            <div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
    3333            <!-- /wp:spacer -->
     
    4040            <!-- wp:spacer {"height":60} -->
    4141            <div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
    42             <!-- /wp:spacer --></div></div>
     42            <!-- /wp:spacer --></div>
    4343            <!-- /wp:group -->',
    4444        )
     
    137137            <div class="wp-block-columns"><!-- wp:column -->
    138138            <div class="wp-block-column"><!-- wp:buttons -->
    139             <div class="wp-block-buttons"><!-- wp:button {"borderRadius":0,"backgroundColor":"bright-blue"} -->
     139            <div class="wp-block-buttons"><!-- wp:button {"style":{"border":{"radius":0}},"backgroundColor":"bright-blue"} -->
    140140            <div class="wp-block-button"><a class="wp-block-button__link has-bright-blue-background-color has-background no-border-radius">' . esc_html__( 'Pre-Order Now', 'twentysixteen' ) . '</a></div>
    141141            <!-- /wp:button --></div>
Note: See TracChangeset for help on using the changeset viewer.