| 1 | Index: wp-includes/class-wp-customize-manager.php
|
|---|
| 2 | ===================================================================
|
|---|
| 3 | --- wp-includes/class-wp-customize-manager.php (revision 20860)
|
|---|
| 4 | +++ wp-includes/class-wp-customize-manager.php (working copy)
|
|---|
| 5 | @@ -514,8 +514,10 @@
|
|---|
| 6 | $ap = $a->priority;
|
|---|
| 7 | $bp = $b->priority;
|
|---|
| 8 |
|
|---|
| 9 | - if ( $ap == $bp )
|
|---|
| 10 | - return 0;
|
|---|
| 11 | + if ( $ap == $bp ) {
|
|---|
| 12 | + $section_keys = array_keys( $this->sections );
|
|---|
| 13 | + return array_search( $a->id, $section_keys ) < array_search( $b->id, $section_keys );
|
|---|
| 14 | + }
|
|---|
| 15 | return ( $ap > $bp ) ? 1 : -1;
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|