Opened 20 months ago
Last modified 20 months ago
#57766 new defect (bug)
filter query_loop_block_query_vars repeater 4 times
Reported by: | gigito78 | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 6.1.1 |
Component: | Query | Keywords: | |
Focuses: | Cc: |
Description
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.
Note: See
TracTickets for help on using
tickets.
Forgotten: obviously only 1 query loop block in the page and query loop block is used on post content.