Make WordPress Core


Ignore:
Timestamp:
07/17/2023 09:32:47 PM (12 months ago)
Author:
azaozz
Message:

Twenty Twenty-Three: Remove the perPage attribute where the query inherits from the global query. The global attribute should be used instead.

Props: mikachan, onemaggie.
Fixes: #58581.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentythree/templates/index.html

    r56207 r56251  
    33<!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} -->
    44<main class="wp-block-group">
    5     <!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"displayLayout":{"type":"flex","columns":3},"align":"wide","layout":{"type":"default"}} -->
     5    <!-- wp:query {"query":{"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"displayLayout":{"type":"flex","columns":3},"align":"wide","layout":{"type":"default"}} -->
    66    <div class="wp-block-query alignwide">
    77        <!-- wp:post-template {"align":"wide"} -->
Note: See TracChangeset for help on using the changeset viewer.