[wp-trac] [WordPress Trac] #32417: Add new core media widget

WordPress Trac noreply at wordpress.org
Sat Feb 18 06:31:45 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 westonruter):

 @karmatosed it's straightforward to make it into a plugin, as I've done in
 this gist:
 https://gist.github.com/westonruter/854aba61243ef08a2e3a2a0e721930dc

 We could add it as a ZIP here for users to install on their sites,
 '''except''' before we do that it seems that there is an issue with the
 selected media not appearing in the control once selected. I'm seeing this
 at least on the widgets admin screen.

 @gonom9 Could you continue to iterate on the Gist plugin I made out of
 your patch? Also, eventually the patch will need to define the scripts and
 styles inside of `script-loader.php` and so the way that the plugin uses
 `wp_default_scripts` and `wp_default_styles` for registering is an
 anticipation of that.

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


More information about the wp-trac mailing list