[wp-trac] [WordPress Trac] #20733: Theme customizer doesn't order sections based on order added

WordPress Trac wp-trac at lists.automattic.com
Wed May 23 23:54:11 UTC 2012


#20733: Theme customizer doesn't order sections based on order added
--------------------------+------------------
 Reporter:  andyadams     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.4
Component:  Appearance    |     Version:  3.4
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by andyadams):

 Replying to [comment:5 SergeyBiryukov]:
 > Perhaps we could use `strcmp( $a->id, $b->id )` as a fallback for equal
 priorities.
 >
 > Seems to work properly with the example from the description.

 I think that will only work if the IDs are in alphabetical order. If we
 compare the position of the array keys instead, it works in my tests.

 Sorry for the patch format - my first time trying SVN patching.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20733#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list