Query Pagination block is output when empty #30522
Labels
[Block] Query Pagination
Affects the Query Pagination Block - used for pagination within the Query Loop Block
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
The wrapping div of the Query Pagination block is output when there are no previous/next/number links to display in it, which can result in extra margins on the page. It's extra noticeable if the block has a custom block style, like this one with vertical borders:
The screenshot shows a custom theme with a custom block style applied, but it behaves the same in TT1 Blocks without the block style.
Step-by-step reproduction instructions
Expected behaviour
The wrapping div of the Query Pagination block shouldn't be output when empty.
Actual behaviour
The wrapping div is output when the block is empty.
WordPress information
Device information
The text was updated successfully, but these errors were encountered: