[wp-trac] [WordPress Trac] #37960: Support for pre-selected radio buttons in media views

WordPress Trac noreply at wordpress.org
Tue Sep 6 19:16:08 UTC 2016


#37960: Support for pre-selected radio buttons in media views
----------------------------------------+-----------------------------
 Reporter:  Enchiridion                 |      Owner:
     Type:  enhancement                 |     Status:  new
 Priority:  normal                      |  Milestone:  Awaiting Review
Component:  Gallery                     |    Version:  trunk
 Severity:  normal                      |   Keywords:
  Focuses:  javascript, administration  |
----------------------------------------+-----------------------------
 While adding custom settings, using a set of radio buttons, to the Edit
 Gallery modal, I found that none of them were ever selected when the modal
 was opened, even though the other form fields were.  Digging into the
 source I found there was no path for handling them.

 This patch adds support for pre-selecting the appropriate radio button
 when a media-view is shown.  Currently the function that does so only
 supports: selects, button-groups, text fields, and checkboxes.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37960>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list