#31637 closed defect (bug) (fixed)
Detected media should be auto-inserted when Pressing a service/domain-specific page
Reported by: | stephdau | Owned by: | azaozz |
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | 4.2 |
Component: | Press This | Keywords: | has-patch |
Focuses: | Cc: |
Description (last modified by )
If a user is "pressing" a page from a service we know and support, 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">
Attachments (2)
Change History (6)
#1
@
10 years ago
- Description modified (diff)
- Summary changed from Auto-insert detected media when Pressing a service/domain-specific page to Detected media should be auto-inserted when Pressing a service/domain-specific page
- Type changed from enhancement to defect (bug)
#2
@
10 years ago
Thinking this should happen for all oEmbed sites we support. If the URL would trigger an oEmbed the same way as if pasted in the editor, we should just add it there with no other content?
Note: See
TracTickets for help on using
tickets.
Even simpler way to define domain/service-specific pages.