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:
Scott Taylor
2015-05-28 21:40:27 +00:00
parent 5f8df2290f
commit 23ce2efd12
61 changed files with 703 additions and 37 deletions

View File

@@ -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];