All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Fixed the right type for sectionHeaderStyle
- Now allows registering of a custom block prefix instead of the default
bm
.
- Fixed issue where metadata wasn't being properly appended.
- Fixed issue where array doesn't exist before filtering.
- Textdomain was not being dynamically loaded.
- Upgraded block loading mechanism to support the updated Block API. This is a breaking change.
- Attributes are no longer defined in dynamic block classes but read from block.json.
- Bumped code standard to typehinted code, requiring at last PHP 7.4.
- Support for PHP 8.
- Anchor wasn't being applied to section wrappers
- In the section class, the attributes filter was not being applied correctly.
- Filters for dynamic blocks in
class Block
. This relies on the newBlocks::$name
property being set for a block. With them you can extend attributes and block wrapper args. See more in the README.
- Added support for background colors, gradients and text colors in dynamic blocks until Gutenberg get their act together.
- Removed default background color because of conflict with gradient.
- Pass args down to is_content_shown
- Add id="" support for sections.
- Support for disabling section wrappers.
- Support for hiding content in a section before render. Useful if no results exist.
- Alignment classes wouldn't be properly applied on sections, this is fixed.
- For sections, add the full alignment attribute as default.
- Section abstract class.
- Switched Trait properties to functions with fallbacks.
- Class variable in our Has_Blocks trait to control the load order.
- Load order on init and plugins_loaded from default (10) to later (99) by default to make sure other plugins are loaded first.
- Better dependency management for blocks. You can now pass a specific list of dependencies for each block, or fallback on the editable global definition.
- The way textdomains are managed to the "proper" WP way.
- Customize the load order of the block assets.
- Load order of block assets are now 999 by default.