[wp-trac] [WordPress Trac] #32417: Add new core media widget
WordPress Trac
noreply at wordpress.org
Mon Feb 20 13:55:19 UTC 2017
#32417: Add new core media widget
-------------------------------------------------+-------------------------
Reporter: melchoyce | Owner: melchoyce
Type: feature request | Status: assigned
Priority: normal | Milestone: 4.8
Component: Widgets | Version: 4.3
Severity: normal | Resolution:
Keywords: needs-unit-tests has-patch needs- | Focuses: ui,
refresh | administration
-------------------------------------------------+-------------------------
Comment (by gonom9):
Changes in
[https://core.trac.wordpress.org/attachment/ticket/32417/32417.9.diff
32417.9.diff]:
- Add support for responsive video, audio, and images. Don't forget to
check "Scale to fit width"
- Updated [https://gist.github.com/taggon/d381e421b743eb5f0e71d225ea18fffa
a plugin for testing] as well. @karmatosed
----
@westonruter Great work! I also updated the gist on my account. The
`script-loader.php` will be addressed in next patch. Thanks. :)
----
Can anyone tell me the best practice to add
[https://gist.github.com/taggon/009cc7baa372b3431074723b57c7bf13 small JS
code] to preview? The code will turn a normal `<video>` or `<audio>`
element into an interactive media element after partial updates. I
originally added the code using `wp_add_inline_script()` and it seemed to
work well but I'm not sure if it's a right way. Would it be better to
write the code in a separate file?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32417#comment:102>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list