Opened 4 years ago
Last modified 4 years ago
#57766 new defect (bug)
filter query_loop_block_query_vars repeater 4 times
| Reported by: | gigito78 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Query | Version: | 6.1.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Forgotten: obviously only 1 query loop block in the page and query loop block is used on post content.