Make WordPress Core

Changeset 61657


Ignore:
Timestamp:
02/17/2026 06:04:42 AM (6 days ago)
Author:
westonruter
Message:

Docs: Add missing @global descriptions and refine parameter documentations in wp-admin/includes classes.

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

Follow-up to [61638].

Props noruzzaman, huzaifaalmesbah, westonruter.
See #64224.

Location:
trunk/src/wp-admin/includes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-debug-data.php

    r61612 r61657  
    11331133     * @since 6.7.0
    11341134     *
    1135      * @global array $_wp_theme_features
     1135     * @global array<string, bool|array> $_wp_theme_features The theme features for the active theme.
    11361136     *
    11371137     * @return array<string, string|array> The active theme debug data.
  • trunk/src/wp-admin/includes/class-wp-importer.php

    r61523 r61657  
    280280     *
    281281     * @global wpdb  $wpdb       WordPress database abstraction object.
    282      * @global int[] $wp_actions
     282     * @global int[] $wp_actions Stores the number of times each action was triggered.
    283283     */
    284284    public function stop_the_insanity() {
  • trunk/src/wp-admin/includes/class-wp-links-list-table.php

    r61456 r61657  
    4343
    4444    /**
    45      * @global int    $cat_id
    46      * @global string $s
    47      * @global string $orderby
    48      * @global string $order
     45     * @global int    $cat_id  Link category ID.
     46     * @global string $s       Search string.
     47     * @global string $orderby The field to order the links by.
     48     * @global string $order   The direction to order the links.
    4949     */
    5050    public function prepare_items() {
     
    7878
    7979    /**
     80     * Displays the message for no items.
    8081     */
    8182    public function no_items() {
     
    8485
    8586    /**
     87     * Gets the list of bulk actions.
     88     *
    8689     * @return array
    8790     */
     
    9497
    9598    /**
    96      * @global int $cat_id
    97      * @param string $which
     99     * @global int $cat_id Link category ID.
     100     * @param string $which The location: 'top' or 'bottom'.
    98101     */
    99102    protected function extra_tablenav( $which ) {
     
    143146
    144147    /**
     148     * Gets the list of sortable columns.
     149     *
    145150     * @return array
    146151     */
     
    225230     * @since 4.3.0
    226231     *
    227      * @global int $cat_id
     232     * @global int $cat_id Link category ID.
    228233     *
    229234     * @param object $link The current link object.
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r61594 r61657  
    16931693     * @since 3.1.0
    16941694     *
    1695      * @param string $which
     1695     * @param string $which The location: 'top' or 'bottom'.
    16961696     */
    16971697    protected function extra_tablenav( $which ) {}
Note: See TracChangeset for help on using the changeset viewer.