Make WordPress Core


Ignore:
Timestamp:
05/28/2015 09:40:27 PM (10 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/class-wp-comments-list-table.php

    r32600 r32642  
    3434     * @see WP_List_Table::__construct() for more information on default arguments.
    3535     *
     36     * @global int $post_id
     37     *
    3638     * @param array $args An associative array of arguments.
    3739     */
     
    5658    }
    5759
     60    /**
     61     *
     62     * @global int    $post_id
     63     * @global string $comment_status
     64     * @global string $search
     65     * @global string $comment_type
     66     */
    5867    public function prepare_items() {
    5968        global $post_id, $comment_status, $search, $comment_type;
     
    154163    }
    155164
     165    /**
     166     *
     167     * @global string $comment_status
     168     */
    156169    public function no_items() {
    157170        global $comment_status;
     
    163176    }
    164177
     178    /**
     179     *
     180     * @global int $post_id
     181     * @global string $comment_status
     182     * @global string $comment_type
     183     */
    165184    protected function get_views() {
    166185        global $post_id, $comment_status, $comment_type;
     
    216235    }
    217236
     237    /**
     238     *
     239     * @global string $comment_status
     240     */
    218241    protected function get_bulk_actions() {
    219242        global $comment_status;
     
    240263    }
    241264
     265    /**
     266     *
     267     * @global string $comment_status
     268     * @global string $comment_type
     269     * @param string $which
     270     */
    242271    protected function extra_tablenav( $which ) {
    243272        global $comment_status, $comment_type;
     
    300329    }
    301330
     331    /**
     332     *
     333     * @global int $post_id
     334     * @return array
     335     */
    302336    public function get_columns() {
    303337        global $post_id;
     
    357391    }
    358392
     393    /**
     394     *
     395     * @global WP_Post $post
     396     * @global object  $comment
     397     * @param object $a_comment
     398     */
    359399    public function single_row( $a_comment ) {
    360400        global $post, $comment;
     
    384424    }
    385425
     426    /**
     427     *
     428     * @global string $comment_status
     429     * @param object $comment
     430     */
    386431    public function column_comment( $comment ) {
    387432        global $comment_status;
     
    513558    }
    514559
     560    /**
     561     *
     562     * @global string $comment_status
     563     * @param object $comment
     564     */
    515565    public function column_author( $comment ) {
    516566        global $comment_status;
Note: See TracChangeset for help on using the changeset viewer.