[wp-trac] [WordPress Trac] #35533: Widget reorder button in Customizer shows when only one widget

WordPress Trac noreply at wordpress.org
Thu Jan 21 22:14:34 UTC 2016


#35533: Widget reorder button in Customizer shows when only one widget
--------------------------+-------------------------
 Reporter:  karmatosed    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.5
Component:  Customize     |     Version:  3.9
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript
--------------------------+-------------------------
Changes (by westonruter):

 * keywords:  good-first-bug has-patch => has-patch


Comment:

 I found an edge case in [attachment:35533.diff] that wasn't accounted for.
 The re-ordering controls for widgets don't only handle re-ordering of
 widgets within a sidebar, but they also provide a link to ''move'' a
 widget to another sidebar. So in [attachment:35533.2.diff] it only hides
 the Reorder button if there are no widgets in the sidebar ''or'' if there
 is only one widget and there is only one widget area.

 Make sense?

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


More information about the wp-trac mailing list