From b9d9c6d3c9b1c8c319856b68eb50efd9801697b6 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Fri, 6 Nov 2015 06:58:25 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp-customize-manager.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index f8bab30232..fcc9697fd6 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/wp-includes/class-wp-customize-manager.php @@ -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; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 3be19c1f19..86dc47d401 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.