WordPress.org

Make WordPress Core

Opened 7 months ago

Last modified 7 months ago

#46457 new defect (bug)

Embed Block to a Reusable Block

Reported by: ryoraspp Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.1
Component: General Keywords:
Focuses: Cc:
PR Number:

Description

If I add an Embed Block to a Reusable Block, only the URL is output.

Add on functions.php


global $wp_embed;
add_filter( 'the_content', array( $wp_embed, 'autoembed' ), 9

Change History (3)

#1 @notnownikki
7 months ago

I found the PRs where we fixed this in the Gutenberg plugin, before the code was removed and migrated over to core.

https://github.com/WordPress/gutenberg/pull/10035 changed the filter priorities so that do_blocks ran before oembed, but it had unintendend consequences for autop. https://github.com/WordPress/gutenberg/pull/11050 fixed those issues.

It seems like altering the priorities in core in the same way as PR10035 did does not break any tests, so I'm not confident I can fix these without breaking things unintentionally. Who would be best to ask about this one?

#2 @notnownikki
7 months ago

I've written a new e2e test for Gutenberg which covers this case, it's at https://github.com/WordPress/gutenberg/pull/14663 if it helps test here.

This ticket was mentioned in Slack in #core-editor by notnownikki. View the logs.


7 months ago

Note: See TracTickets for help on using tickets.