[wp-trac] [WordPress Trac] #32359: Add oEmbed support for WordPress.com

WordPress Trac noreply at wordpress.org
Thu Jun 4 16:17:17 UTC 2015

#32359: Add oEmbed support for WordPress.com
 Reporter:  johnbillion              |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  4.3
Component:  Embeds                   |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch 2nd-opinion  |     Focuses:

Comment (by stephdau):

 I've added 2 patches, as a mean to maybe kickstart this happening.
  * [attachment:32359.diff] is the suggested functional change
  * [attachment:32359.1.diff] is the same, coupled with the required
 whitespace reformatting required because WordPress.com's name adds an
 extra space. :)

 The change adds `#https?://[^/]+\.wordpress\.com/[\d/]+/.+#i` as a
 provider, which checks for:
  * `https?://[^/]+\.`: WPCOM subdomain (caret-slash to avoid URL based
  * `/[\d/]+/.+`: WPCOM doesn'tallow users to modif the URL structure, so
 digit or slash (`/2015/06/04/`), then slug

 The API URL passes the basic `for` identifier (set as `WP`), as required
 by WPCOM.

 This only results in basic support (links), for now,and until a proper
 view handler is also written, which would be the next step. I've never
 written one of those, help appreciated. :)

 See attached screenshots.

Ticket URL: <https://core.trac.wordpress.org/ticket/32359#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list