[wp-trac] [WordPress Trac] #31637: Auto-insert detected media when Pressing a service/domain-specific page
WordPress Trac
noreply at wordpress.org
Fri Mar 13 19:04:13 UTC 2015
#31637: Auto-insert detected media when Pressing a service/domain-specific page
-------------------------+-----------------------
Reporter: stephdau | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.2
Component: Press This | Version: trunk
Severity: normal | Keywords: has-patch
Focuses: |
-------------------------+-----------------------
If a user is "pressing" a page from a service we know and support, it's
been suggested that we should auto-embed said media on pageload.
Attached is a patch that does this (for embeds, for now, not images) for
pages like:
* http://www.youtube.com/watch?v=XFFdoH_AeQE (or
http://www.youtube.com/watch?whatever=blah&v=XFFdoH_AeQE, etc)
* https://vimeo.com/118458120 (or
https://vimeo.com/channels/staffpicks/118458120, etc)
* https://soundcloud.com/frankiebones/live-output-brooklyn-ny-may-23-2014
* and so on
Note the update to `WP_Press_This::get_canonical_link()` to support them
if from root, instead of fully qualified.
EG: Vimeo: `<link rel="canonical" href="/118458120">`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31637>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list