We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ef984d commit 12b6750Copy full SHA for 12b6750
includes/transformer/class-post.php
@@ -229,7 +229,8 @@ protected function get_attachments() {
229
if ( $max_images > 0 ) {
230
// first try to get images that are actually in the post content
231
if ( site_supports_blocks() && \has_blocks( $this->wp_post->post_content ) ) {
232
- $image_ids = $this->get_block_image_ids( $max_images, $image_ids );
+ $block_image_ids = $this->get_block_image_ids( $max_images, $image_ids );
233
+ $image_ids = \array_merge( $image_ids, $block_image_ids );
234
} else {
235
// fallback to images attached to the post
236
$query = new \WP_Query(
0 commit comments