[wp-trac] [WordPress Trac] #51566: Process embeds for block widgets

WordPress Trac noreply at wordpress.org
Mon Oct 19 11:11:16 UTC 2020


#51566: Process embeds for block widgets
--------------------------+-----------------------------
 Reporter:  talldanwp     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Embeds        |    Version:
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 As noticed in a Gutenberg issue
 (https://github.com/WordPress/gutenberg/issues/26180), embeds made using
 the embed block are not showing on the front end.

 From what I understand, the class `WP_Embed` is responsible for processing
 embeds in content.

 Currently it runs on `the_content` (post content) and
 `widget_text_content` (text widgets), but not on other types of widget:
 https://github.com/WordPress/wordpress-
 develop/blob/86fc3af215a61f042804e3feb57627976d2bb54d/src/wp-includes
 /class-wp-embed.php#L32-L40

 To solve the bug, I think we'd want it to also run for all block based
 widgets.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51566>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list