Make WordPress Core


Ignore:
Timestamp:
02/13/2026 06:33:22 PM (8 months ago)
Author:
westonruter
Message:

Docs: Add missing @global variable descriptions.

Developed in ​https://github.com/WordPress/wordpress-develop/pull/10864

Follow-up to [61604], [61592].

Props noruzzaman, huzaifaalmesbah, shailu25, sabernhardt, westonruter.
See #64224.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r61525 r61638  
    3232         * @see WP_List_Table::__construct() for more information on default arguments.
    3333         *
    34          * @global int $post_id
     34         * @global int $post_id The ID of the post to show comments for.
    3535         *
    3636         * @param array $args An associative array of arguments.
    … …  
    225225        /**
    226226         * Displays a message when no comments are found.
    227          *
    228          * @global string $comment_status
     227         * @global string $comment_status The current comment status filter.
    229228         */
    230229        public function no_items() {
    … …  
    243242         * Returns an array of comment status links.
    244243         *
    245          * @global int    $post_id
    246          * @global string $comment_status
    247          * @global string $comment_type
     244         * @global int    $post_id        The ID of the post to show comments for.
     245         * @global string $comment_status The current comment status.
     246         * @global string $comment_type   The current comment type.
    248247         *
    249248         * @return array<string, string> Comment status HTML links keyed by view.
    … …  
    413412         * Displays extra controls between bulk actions and pagination.
    414413         *
    415          * @global string $comment_status
    416          * @global string $comment_type
     414         * @global string $comment_status Current comment status.
     415         * @global string $comment_type   Current comment type.
    417416         *
    418417         * @param string $which The location of the extra table nav markup: Either 'top' or 'bottom'.
    … …  
    486485         * Gets the list of columns.
    487486         *
    488          * @global int $post_id
     487         * @global int $post_id The ID of the post comments are being shown for.
    489488         *
    490489         * @return string[] Array of column titles keyed by their column name.
    … …  
    10121011         * Outputs the author column.
    10131012         *
    1014          * @global string $comment_status
     1013         * @global string $comment_status The current comment status.
    10151014         *
    10161015         * @param WP_Comment $comment The comment object.
Note: See TracChangeset for help on using the changeset viewer.