tomusborne / generateblocks

GenerateBlocks is a small collection of lightweight WordPress blocks that can accomplish nearly anything.
https://generateblocks.com
198 stars 23 forks source link

Tweak: Switch required tag option logic #1375

Closed tomusborne closed 1 month ago

tomusborne commented 1 month ago

This PR flips the logic when it comes to dynamic tags that have no value.

By default, all tags are required to have a value. If one of the tags in a block has no value, the entire block will not render.

This can be prevented by adding required:false to any non-essential tags.