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/twentytwelve/inc/block-patterns.php

    r51033 r51372  
    3535            'viewportWidth' => 700,
    3636            'content'       => '<!-- wp:group -->
    37                 <div class="wp-block-group"><div class="wp-block-group__inner-container"><!-- wp:columns -->
     37                <div class="wp-block-group"><!-- wp:columns -->
    3838                <div class="wp-block-columns"><!-- wp:column -->
    3939                <div class="wp-block-column"><!-- wp:spacer -->
     
    6363                <!-- /wp:image --></div>
    6464                <!-- /wp:column --></div>
    65                 <!-- /wp:columns --></div></div>
     65                <!-- /wp:columns --></div>
    6666                <!-- /wp:group -->',
    6767        )
Note: See TracChangeset for help on using the changeset viewer.