Make WordPress Core


Ignore:
Timestamp:
05/29/2015 02:05:26 AM (9 years ago)
Author:
wonderboymusic
Message:

Add @global annotations to (the rest of the?) wp-admin/* files.

Does not include list table file changes.

See #32444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r32175 r32643  
    436436 *
    437437 * @since 2.7.0
     438 *
     439 * @global WP_List_Table $wp_list_table
    438440 *
    439441 * @param int $position
     
    657659 * @since 1.2.0
    658660 *
     661 * @global wpdb $wpdb
     662 *
    659663 * @param WP_Post $post Optional. The post being edited.
    660664 */
     
    738742 * @since 0.71
    739743 *
     744 * @global WP_Locale $wp_locale
     745 * @global object    $comment
     746 *
    740747 * @param int|bool $edit      Accepts 1|true for editing the date, 0|false for adding the date.
    741748 * @param int|bool $for_post  Accepts 1|true for applying the date to a post, 0|false for a comment.
     
    839846 *
    840847 * @since 1.5.0
     848 *
     849 * @global wpdb $wpdb
    841850 *
    842851 * @param int $default Optional. The default page ID to be pre-selected. Default 0.
     
    934943 *
    935944 * @since 2.5.0
     945 *
     946 * @global array $wp_meta_boxes
    936947 *
    937948 * @param string           $id            String for use in the 'id' attribute of tags.
     
    10231034 * @since 2.5.0
    10241035 *
     1036 * @global array $wp_meta_boxes
     1037 *
    10251038 * @staticvar bool $already_sorted
    10261039 * @param string|WP_Screen $screen Screen identifier
     
    10901103 *
    10911104 * @since 2.6.0
     1105 *
     1106 * @global array $wp_meta_boxes
    10921107 *
    10931108 * @param string $id String for use in the 'id' attribute of tags.
     
    15771592 * @since 2.7.0
    15781593 *
     1594 * @global string    $hook_suffix
     1595 * @global string    $admin_body_class
     1596 * @global WP_Locale $wp_locale
     1597 *
    15791598 * @param string $title      Optional. Title of the Iframe page. Default empty.
    15801599 * @param bool   $deprecated Not used.
     
    16381657$admin_body_classes = apply_filters( 'admin_body_class', '' );
    16391658?>
    1640 <body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?> class="wp-admin wp-core-ui no-js iframe <?php echo $admin_body_classes . ' ' . $admin_body_class; ?>">
     1659<body<?php
     1660/**
     1661 * @global string $body_id
     1662 */
     1663if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?> class="wp-admin wp-core-ui no-js iframe <?php echo $admin_body_classes . ' ' . $admin_body_class; ?>">
    16411664<script type="text/javascript">
    16421665(function(){
     
    19221945}
    19231946
     1947/**
     1948 *
     1949 * @global bool $is_IE
     1950 */
    19241951function _wp_admin_html_begin() {
    19251952    global $is_IE;
     
    21082135    }
    21092136
     2137    /**
     2138     * @static
     2139     *
     2140     * @global bool $_wp_editor_expand
     2141     */
    21102142    public static function pointer_wp410_dfw() {
    21112143        // Don't show when editor-scrolling is not used.
Note: See TracChangeset for help on using the changeset viewer.