All notable changes to WP Block Converter
will be documented in this file.
- Fixed bug where macros can be used to modify/replace any tag.
- Add collection of attachments that are created during the conversion process.
Two methods now exist on the converter to help:
get_created_attachment_ids()
- Returns the attachment IDs that were created.assign_parent_to_attachments()
- Assigns a parent post to all attachments.
- Nested images are now properly sideloaded and converted to image blocks where appropriate. For example, an image inside a figure tag will now be converted to an image block. An image within a paragraph tag will be sideloaded but won't be converted to an image block.
- Drops support for PHP 8.0.
- Fixes issue with
<embed>
elements.
- Preserve new lines in embed blocks. They are required for proper front end rendering.
- Fix aspect ratio calculation when height and width are percentages - which fixes TikTok embeds.
- Fixes embeds of x.com urls (instead of twitter.com)
- Adds macro support to the converter, allowing for custom tags to be added to the converter.
- Adds support for
hr
tags. - Adds support for embeds.
- Enhancement: Adds support for non-standard ports in sanitized URLs (e.g., 8080).
- Enhancement: Added new filter called
wp_block_converter_sanitized_image_url
which allows the image URL for converted images to be filtered before being applied. - Bugfix: Changed the behavior of the
create_or_get_attachment
function to throw an exception instead of returning aWP_Error
, which wasn't being handled previously and would result in a crash if a non-string value was returned byupload_image
. - Bugfix: Ensure
upload_image
returns the image URL.
- Expands PHP version support from just 8.0 to include 8.1 and 8.2
- Initial release