Make WordPress Core


Ignore:
Timestamp:
07/14/2021 08:01:21 PM (4 years ago)
Author:
desrosj
Message:

Bundled Themes: Revert the [51372] update to block patterns in bundled themes.

Upon further examination, this change was not great for backwards compatibility, resulting in block validation errors when running on older versions of WordPress.

While there are currently many console.info() notices caused by older format block syntax being updated to the current version included in WordPress 5.8, the blocks do not break.

Block patterns do not currently have a versioning mechanism, or a means to indicate which versions of WordPress are supported.

See #53617.

File:
1 edited

Legend:

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

    r51400 r51434  
    9898                <!-- /wp:paragraph -->
    9999                <!-- wp:buttons {"contentJustification":"center"} -->
    100                 <div class="wp-block-buttons is-content-justification-center"><!-- wp:button {"style":{"border":{"radius":0}},"backgroundColor":"white","textColor":"black"} -->
     100                <div class="wp-block-buttons is-content-justification-center"><!-- wp:button {"borderRadius":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.