mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Help Tab Order should be based on the Priority Argument
[34370] made the order that tabs are returned respect the order they are added, however it broke the respect of priority. By using a ksort instead of a sort, we can restore that default behavior. This adjusts the unit tests so that both order added and priority are tested. Props meitar, swissspidy, jorbin Fixes #35215. See #33941. Built from https://develop.svn.wordpress.org/trunk@36089 git-svn-id: http://core.svn.wordpress.org/trunk@36054 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2328667dc9
commit
94aac7055c
@ -530,7 +530,7 @@ final class WP_Screen {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sort( $priorities );
|
ksort( $priorities );
|
||||||
|
|
||||||
$sorted = array();
|
$sorted = array();
|
||||||
foreach ( $priorities as $list ) {
|
foreach ( $priorities as $list ) {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5-alpha-36088';
|
$wp_version = '4.5-alpha-36089';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
|
Loading…
Reference in New Issue
Block a user