[wp-trac] [WordPress Trac] #32522: oEmbed WordPress Posts in WordPress Posts

WordPress Trac noreply at wordpress.org
Fri Jul 17 23:39:43 UTC 2015


#32522: oEmbed WordPress Posts in WordPress Posts
-------------------------+------------------------------
 Reporter:  melchoyce    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Embeds       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  administration
-------------------------+------------------------------

Comment (by dshanske):

 As the one who suggested the link preview alternative, I have to point out
 that if you are engaging in the level of work to sanitize input from
 WordPress sites because of trust issues, then you are already doing the
 parsing work.

 oEmbed requires that any site support it support another URL (the oEmbed
 endpoint) to provide information that is otherwise available in the page
 itself.

 Twitter, which someone used as an example, supports oembed, but note that
 for their own implementation...Twitter Cards, they use a variant of
 OpenGraph.

 OpenGraph is also Facebook, and G+ use...although it isn't their only
 source. You can add a filter/hook to process the retrieved data from the
 URL in other ways(microdata, microformats, what have you) as a plugin.
 Microformats, for example, are widely, if inconsistenty used in WordPress
 themes(hentry anyone?).

 You can add the same caching you have for oembed so it isn't pulling the
 URL every time.

 You could probably make a case for Link Preview functionality replacing
 oembed entirely, but that is a bit radical an idea I think at this point.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32522#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list