Releases: alleyinteractive/wp-block-converter
Releases · alleyinteractive/wp-block-converter
v1.5.1
v1.5.0
Added
- 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.
Changed
- 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.
Full Changelog: v1.4.0...v1.5.0
v1.4.0
- Drops support for PHP 8.0.
- Fixes issue with
<embed>
elements.
Full Changelog: v1.3.2...v1.4.0
v1.3.2
v1.3.1
v1.3.0
Enhancement: Adds support for <hr />
tags to be converted into a wp:separator
block
Enhancement: Adds support for oEmbeddable urls inside a paragraph tag to be converted to the wp:embed
block
Enhancement: Adds macro support to add custom handlers for tags not supported in the library
v1.2.0
- 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.
v1.1.0
- Expands PHP version support from just 8.0 to include 8.1 and 8.2