MB Blocks Changelog
1.7.3 - 2024-11-01
- Fix group creating a new group entry upon edit & save.
- Add missing "description" in block keys
1.7.2 - 2024-09-26
- Update CSS for blocks to match WordPress's selectors
- Fix error when block icon is FontAwesome and no icon is selecte
1.7.1 - 2024-08-19
Fix running PHP Codesniffer when installing & autoload the plugin's main file via Composer
1.7.0 - 2024-07-24
This version allows you to make inner blocks use the same markup for both the admin and front end by adding id
, class
, or style
attribute to <InnerBlocks>
wrapper.
For more details, please see the docs.
1.6.1 - 2024-07-17
- Fix compatibility with WordPress 6.6
1.6.0 - 2024-07-02
Highlights:
This version allows you to render blocks with views. You can specify the view template in the "render_callback" parameter as "view: view_name", or if you use block.json file, set the "render" parameter to "view: view_name".
This version also works with Meta Box Builder to allow you to set/edit views with UI. For more details, please see this blog post.
Other changes:
- Allow to render blocks with views
- Improve styling of blocks on sidebar
- Fix $ being escaped in the output
1.5.1 - 2024-05-16
- Fix: rest response for inner blocks in headless mode (#12)
- Fix: add name attribute back
- Add param resolver, so you can use parameter
$attributes
,$content
,$block
in render callback/template in any order, or remove them if you don't need them.
1.5.0 - 2024-04-17
Highlights:
The plugin now supports creating blocks with block.json, which aligns with the WordPress's recommended method to create blocks. This allows the blocks created with MB Blocks will be compatible with future development of WordPress and the block editor.
With the support of block.json, the plugin now fully supports Full-Site Editing (FSE). So you can use the blocks in FSE's templates.
This update also makes rendering the block easier by automatically preparing the fields' values and put them directly in the $attributes
parameter.
For details, please see the documentation.
1.4.2 - 2023-03-09
- Add support for blocks with no fields
1.4.1 - 2022-12-05
- Add "version" param to improve caching for assets
- Add "mb_{ $block_id }_settings" filter when registering blocks
1.4.0 - 2021-07-28
- Add support for inner blocks (nested blocks). See docs for how to use.
1.3.2 - 2021-07-14
- Fix style of inputs on sidebar
1.3.1 - 2021-06-05
- Improve the toggle button
- Make input, select, textarea, select2, input group, columns 100% width on sidebar
1.3.0 - 2021-02-23
- Support saving block attributes to post meta and custom table. See docs for usage.
- Don't load FontAwesome in the front end
1.2.5 - 2020-02-05
- Allow to set foreground, background for FontAwesome icon.
1.2.4 - 2020-12-25
- Fix field IDs starts with underscores not saving
1.2.3 - 2020-07-07
- Fix CSS affected normal side meta boxes.
1.2.2 - 2020-07-07
- Fix blocks with side context not working.
1.2.1 - 2020-07-06
- Fix block doesn’t receive unique ID when duplicated.
- Fix "name" param not working in the block attributes.
1.2.0 - 2020-04-18
- Fix JS warning in the console for class/className
- Add support for FontAwesome icon, users only need to define 'icon' => 'fas fa-user'. No need to enqueue CSS for FontAwesome. Support FontAwesome 5, free version.
1.1.1 - 2020-04-16
- Fix style for fields on the sidebar
- Bypass if WordPress version < 5.0 (in Meta Box AIO)
1.1.0 - 2020-02-12
- Add support for block preview.
1.0.16 - 2020-01-16
- Fix 'std' param not working
1.0.15 - 2020-01-05
- Fix field description margin
1.0.14 - 2019-12-19
- Add
mode
parameter for blocks in normal mode which allows developer to specify initial mode (preview
oredit
) for blocks.
1.0.13 - 2019-12-04
- Fix the scrolling issue for color field
1.0.12 - 2019-11-28
Fixed
- Fix group order not saving
- Fix background issue when a theme/plugin change Gutenberg background
Changed
- Add class for wrapper div
1.0.11 - 2019-11-14
- Fix JavaScript error that causes blocks not available in the back end in WordPress 5.3.
- Fix style for group title & button.
1.0.10 - 2019-10-18
- Fix block over certain content length crashes
1.0.9 - 2019-09-26
- Fix empty form when editing blocks.
1.0.8 - 2019-09-23
- Add block name to
$attributes
for block rendering via attributename
1.0.7 - 2019-09-14
- Fix custom assets are enqueued on all admin pages
1.0.6 - 2019-08-29
Fixed
- Fix some fields (color, reorder images, etc.) not updating in real-time. Requires Meta Box 5.1.2+
- Fix CSS for wysiwyg field
- Fix CSS for color picker in the content area
Changed
- Allow to return value in
mb_the_block_field
1.0.5 - 2019-08-23
- Fix not saving fields that contains "-" in IDs
1.0.4 - 2019-08-17
- Fix block attributes are not saved reliably.
1.0.3 - 2019-08-12
- Fix not saving data correctly for cloneable/group fields.
1.0.2 - 2019-08-05
- Add missing
$post_id
parameter for the render callback.
1.0.1 - 2019-08-03
Fixed
- Fix Publish button not enabled when changing block content.
Changed
- Add
$post_id
parameter to the render callback/template.
1.0.0 - 2019-07-31
- Initial release