WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/08/2021 05:31:14 PM (5 months ago)
Author:
youknowriad
Message:

Block Editor: Package updates for WordPress 5.8 beta 1 (batch2).

This includes the following fixes:

  • Fix inspector opening when clicking outside the widget areas
  • Assume light theme when a transparent background is used
  • Make Post blocks non editable inside Query block
  • Rename QueryLoop to PostTemplate block

Props ntsekouras.
See #52991.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-patterns/query-offset-posts.php

    r50971 r51101  
    1414                    <div class="wp-block-columns"><!-- wp:column {"width":"50%"} -->
    1515                    <div class="wp-block-column" style="flex-basis:50%"><!-- wp:query {"query":{"perPage":2,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"list"}} -->
    16                     <div class="wp-block-query"><!-- wp:query-loop -->
     16                    <div class="wp-block-query"><!-- wp:post-template -->
    1717                    <!-- wp:post-featured-image /-->
    1818                    <!-- wp:post-title /-->
     
    2121                    <div style="height:200px" aria-hidden="true" class="wp-block-spacer"></div>
    2222                    <!-- /wp:spacer -->
    23                     <!-- /wp:query-loop --></div>
     23                    <!-- /wp:post-template --></div>
    2424                    <!-- /wp:query --></div>
    2525                    <!-- /wp:column -->
    2626                    <!-- wp:column {"width":"50%"} -->
    2727                    <div class="wp-block-column" style="flex-basis:50%"><!-- wp:query {"query":{"perPage":2,"pages":0,"offset":2,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"list"}} -->
    28                     <div class="wp-block-query"><!-- wp:query-loop -->
     28                    <div class="wp-block-query"><!-- wp:post-template -->
    2929                    <!-- wp:spacer {"height":200} -->
    3030                    <div style="height:200px" aria-hidden="true" class="wp-block-spacer"></div>
     
    3333                    <!-- wp:post-title /-->
    3434                    <!-- wp:post-date /-->
    35                     <!-- /wp:query-loop --></div>
     35                    <!-- /wp:post-template --></div>
    3636                    <!-- /wp:query --></div>
    3737                    <!-- /wp:column --></div>
Note: See TracChangeset for help on using the changeset viewer.