Make WordPress Core


Ignore:
Timestamp:
07/07/2021 05:29:48 PM (3 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/twentyeleven/inc/block-patterns.php

    r51323 r51372  
    9898                <!-- /wp:paragraph -->
    9999                <!-- wp:buttons {"contentJustification":"center"} -->
    100                 <div class="wp-block-buttons is-content-justification-center"><!-- wp:button {"borderRadius":0,"backgroundColor":"white","textColor":"black"} -->
     100                <div class="wp-block-buttons is-content-justification-center"><!-- wp:button {"style":{"border":{"radius":0}},"backgroundColor":"white","textColor":"black"} -->
    101101                <div class="wp-block-button"><a class="wp-block-button__link has-black-color has-white-background-color has-text-color has-background no-border-radius">' . esc_html__( 'Follow', 'twentyeleven' ) . '</a></div>
    102102                <!-- /wp:button --></div>
Note: See TracChangeset for help on using the changeset viewer.