[wp-trac] [WordPress Trac] #27891: Setting Poster Image does not also set Featured Image for videos

WordPress Trac noreply at wordpress.org
Sat Jun 28 03:40:21 UTC 2014


#27891: Setting Poster Image does not also set Featured Image for videos
-------------------------+-------------------------
 Reporter:  pavelevap    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.0
Component:  Media        |     Version:  3.9
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  javascript
-------------------------+-------------------------

Comment (by wonderboymusic):

 [attachment:27891.2.diff 27891.2.diff] uses tae kwon do instead of jiu
 jitsu to try to set the featured image in the background for a video URL
 when you set its poster image. Interestingly enough, it also sets the
 featured image for whatever fallbacks you specified.

 Adds a new function: `attachment_url_to_postid()`, since audio and video
 shortcodes don't have to point attachments. They can point at external
 URLs. IF the video is native to your install, and it match the fragment
 stored in `_wp_attached_file`, magic happens.

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


More information about the wp-trac mailing list