[wp-trac] [WordPress Trac] #28195: Preview embeds with wpview and auto embed on paste
WordPress Trac
noreply at wordpress.org
Mon May 26 08:42:34 UTC 2014
#28195: Preview embeds with wpview and auto embed on paste
-------------------------+-------------------------
Reporter: avryl | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.0
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
-------------------------+-------------------------
Comment (by kovshenin):
Hi there! Looking at r28358 and I think `the_content` is too extreme. That
filter is meant to run through the whole content, not just a chunk of it.
Many plugins will append/prepend all sorts of stuff, like star ratings,
social sharing buttons, author bios, ads. We really don't want those
around our embedded YouTube video :)
In [attachment:28195.2.diff]: remove the generic filter and call it
`parse-embed` instead, use `WP_Embed` to parse the embed shortcode. The
post ID is still needed for caching.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28195#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list