Customize: Fix typo in `WP_Customize_Manager::_cmp_priority()` which caused unstable sorting for same-priority constructs in PHP.
The issue, however, does not manifest in the UI because the UI is now built via JS and the `wp.customize.utils.prioritySort()` algorithm did not have the same typo. Props bordoni, westonruter. Fixes #34594. Built from https://develop.svn.wordpress.org/trunk@35553 git-svn-id: http://core.svn.wordpress.org/trunk@35517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cbe0cad509
commit
b9d9c6d3c9
|
@ -1302,7 +1302,7 @@ final class WP_Customize_Manager {
|
|||
*/
|
||||
protected function _cmp_priority( $a, $b ) {
|
||||
if ( $a->priority === $b->priority ) {
|
||||
return $a->instance_number - $a->instance_number;
|
||||
return $a->instance_number - $b->instance_number;
|
||||
} else {
|
||||
return $a->priority - $b->priority;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-beta3-35552';
|
||||
$wp_version = '4.4-beta3-35553';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue