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/menu-header.php

    r31955 r32642  
    1111 *
    1212 * @global string $self
    13  * @name $self
    14  * @var string
    1513 */
    1614$self = preg_replace('|^.*/wp-admin/network/|i', '', $_SERVER['PHP_SELF']);
     
    1917$self = preg_replace('|^.*/mu-plugins/|i', '', $self);
    2018
    21 global $menu, $submenu, $parent_file; //For when admin-header is included from within a function.
     19/**
     20 * For when admin-header is included from within a function.
     21 *
     22 * @global array  $menu
     23 * @global array  $submenu
     24 * @global string $parent_file
     25 */
     26global $menu, $submenu, $parent_file;
    2227
    2328/**
     
    4045 * @since 2.7.0
    4146 *
     47 * @global string $self
     48 * @global string $parent_file
     49 * @global string $submenu_file
     50 * @global string $plugin_page
     51 * @global string $typenow
     52 *
    4253 * @param array $menu
    4354 * @param array $submenu
    44  * @param bool $submenu_as_parent
     55 * @param bool  $submenu_as_parent
    4556 */
    4657function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {
Note: See TracChangeset for help on using the changeset viewer.