mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 19:24:34 +00:00
Add @global annotations for wp-admin/*.
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32642 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -279,6 +279,15 @@ if ( apply_filters( 'custom_menu_order', false ) ) {
|
||||
$menu_order = array_flip($menu_order);
|
||||
$default_menu_order = array_flip($default_menu_order);
|
||||
|
||||
/**
|
||||
*
|
||||
* @global array $menu_order
|
||||
* @global array $default_menu_order
|
||||
*
|
||||
* @param array $a
|
||||
* @param array $b
|
||||
* @return int
|
||||
*/
|
||||
function sort_menu($a, $b) {
|
||||
global $menu_order, $default_menu_order;
|
||||
$a = $a[2];
|
||||
|
||||
Reference in New Issue
Block a user