Make WordPress Core


Ignore:
Timestamp:
05/28/2015 09:40:27 PM (9 years ago)
Author:
wonderboymusic
Message:

Add @global annotations for wp-admin/*.

See #32444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/nav-menus.php

    r32116 r32642  
    468468 * Ensure the user will be able to scroll horizontally
    469469 * by adding a class for the max menu depth.
     470 *
     471 * @global int $_wp_nav_menu_max_depth
    470472 */
    471473global $_wp_nav_menu_max_depth;
     
    478480}
    479481
    480 function wp_nav_menu_max_depth($classes) {
     482/**
     483 *
     484 * @global int $_wp_nav_menu_max_depth
     485 *
     486 * @param string $classes
     487 * @return string
     488 */
     489function wp_nav_menu_max_depth( $classes ) {
    481490    global $_wp_nav_menu_max_depth;
    482491    return "$classes menu-max-depth-$_wp_nav_menu_max_depth";
Note: See TracChangeset for help on using the changeset viewer.