Make WordPress Core


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

Add @global annotations for wp-admin/*.

See #32444.

File:
1 edited

Legend:

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

    r32600 r32642  
    1313 *
    1414 * @since 2.5.0
     15 *
     16 * @global array $wp_registered_widgets
     17 * @global array $wp_registered_widget_controls
     18 * @global array $wp_dashboard_control_callbacks
    1519 */
    1620function wp_dashboard_setup() {
     
    126130}
    127131
     132/**
     133 *
     134 * @global array   $wp_dashboard_control_callbacks
     135 *
     136 * @param string   $widget_id
     137 * @param string   $widget_name
     138 * @param callback $callback
     139 * @param callback $control_callback
     140 * @param array    $callback_args
     141 */
    128142function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_callback = null, $callback_args = null ) {
    129143    $screen = get_current_screen();
     
    414428 * @since 3.8.0
    415429 *
     430 * @global int $post_ID
     431 *
    416432 * @param string $error_msg Optional. Error message. Default false.
    417433 */
     
    518534}
    519535
     536/**
     537 * @global object $comment
     538 *
     539 * @param object $comment
     540 * @param bool   $show_date
     541 */
    520542function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
    521543    $GLOBALS['comment'] =& $comment;
     
    874896 *
    875897 * @since 2.5.0
     898 *
     899 * @global array $wp_dashboard_control_callbacks
    876900 *
    877901 * @param int $widget_control_id Registered Widget ID.
     
    12311255 *
    12321256 * @since 3.2.0
     1257 *
     1258 * @global string $wp_version
    12331259 *
    12341260 * @return array|bool False on failure, array of browser data on success.
Note: See TracChangeset for help on using the changeset viewer.