Make WordPress Core

Opened 16 months ago

Last modified 16 months ago

#57766 new defect (bug)

filter query_loop_block_query_vars repeater 4 times

Reported by: gigito78's profile gigito78 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.1.1
Component: Query Keywords:
Focuses: Cc:


Hello! I think that filter query_loop_block_query_vars be repeated 4 times foreach query.

Tried to use this simple code in functions.php(theme Twenty Twenty-Two, no plugins):

add_filter( 'query_loop_block_query_vars', function( $query, $block ){
echo '1<br>';
return $query;

}, 21, 2 );

You can notice 4 times 1 on top of the page.

Change History (1)

#1 @gigito78
16 months ago

Forgotten: obviously only 1 query loop block in the page and query loop block is used on post content.

Last edited 16 months ago by gigito78 (previous) (diff)
Note: See TracTickets for help on using tickets.