mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00: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. git-svn-id: https://develop.svn.wordpress.org/trunk@36089 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -530,7 +530,7 @@ final class WP_Screen {
|
||||
}
|
||||
}
|
||||
|
||||
sort( $priorities );
|
||||
ksort( $priorities );
|
||||
|
||||
$sorted = array();
|
||||
foreach ( $priorities as $list ) {
|
||||
|
||||
Reference in New Issue
Block a user