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:
Weston Ruter 2015-11-06 06:58:25 +00:00
parent cbe0cad509
commit b9d9c6d3c9
2 changed files with 2 additions and 2 deletions

View File

@ -1302,7 +1302,7 @@ final class WP_Customize_Manager {
*/ */
protected function _cmp_priority( $a, $b ) { protected function _cmp_priority( $a, $b ) {
if ( $a->priority === $b->priority ) { if ( $a->priority === $b->priority ) {
return $a->instance_number - $a->instance_number; return $a->instance_number - $b->instance_number;
} else { } else {
return $a->priority - $b->priority; return $a->priority - $b->priority;
} }

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.