Make WordPress Core

Changeset 61638


Ignore:
Timestamp:
02/13/2026 06:33:22 PM (3 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.

Location:
trunk/src/wp-admin
Files:
8 edited

Legend:

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

    r61522 r61638  
    12421242 * @since 3.1.0
    12431243 *
    1244  * @global int $post_id
     1244 * @global int $post_id Post ID.
    12451245 *
    12461246 * @param string $action Action to perform.
     
    23542354 * @since 3.1.0
    23552355 *
    2356  * @global array $wp_registered_widgets
    2357  * @global array $wp_registered_widget_controls
    2358  * @global array $wp_registered_widget_updates
     2356 * @global array $wp_registered_widgets         Registered widgets.
     2357 * @global array $wp_registered_widget_controls Registered widget controls.
     2358 * @global array $wp_registered_widget_updates  Registered widget updates.
    23592359 */
    23602360function wp_ajax_save_widget() {
     
    24632463 * @since 3.9.0
    24642464 *
    2465  * @global WP_Customize_Manager $wp_customize
     2465 * @global WP_Customize_Manager $wp_customize Customizer manager object.
    24662466 */
    24672467function wp_ajax_update_widget() {
     
    35893589 * @since 3.8.0
    35903590 *
    3591  * @global array $_wp_admin_css_colors
     3591 * @global array $_wp_admin_css_colors Registered admin CSS color schemes.
    35923592 */
    35933593function wp_ajax_save_user_color_scheme() {
     
    36183618 * @since 3.9.0
    36193619 *
    3620  * @global array $themes_allowedtags
    3621  * @global array $theme_field_defaults
     3620 * @global array $themes_allowedtags   Allowed HTML tags for theme descriptions.
     3621 * @global array $theme_field_defaults Default theme fields.
    36223622 */
    36233623function wp_ajax_query_themes() {
     
    37513751 * @global WP_Post    $post          Global post object.
    37523752 * @global WP_Embed   $wp_embed      WordPress Embed object.
    3753  * @global WP_Scripts $wp_scripts
    3754  * @global int        $content_width
     3753 * @global WP_Scripts $wp_scripts    Script dependencies object.
     3754 * @global int        $content_width Shared post content width.
    37553755 */
    37563756function wp_ajax_parse_embed() {
     
    38923892 *
    38933893 * @global WP_Post    $post       Global post object.
    3894  * @global WP_Scripts $wp_scripts
     3894 * @global WP_Scripts $wp_scripts Script dependencies object.
    38953895 */
    38963896function wp_ajax_parse_media_shortcode() {
  • trunk/src/wp-admin/includes/class-core-upgrader.php

    r61455 r61638  
    4949     *
    5050     * @global WP_Filesystem_Base $wp_filesystem                WordPress filesystem subclass.
    51      * @global callable           $_wp_filesystem_direct_method
     51     * @global callable           $_wp_filesystem_direct_method Filesystem direct method callback.
    5252     *
    5353     * @param object $current Response object for whether WordPress is current.
  • trunk/src/wp-admin/includes/class-custom-image-header.php

    r61453 r61638  
    269269     * @since 3.0.0
    270270     *
    271      * @global array $_wp_default_headers
     271     * @global array $_wp_default_headers Default headers registered for themes.
    272272     */
    273273    public function process_default_headers() {
  • trunk/src/wp-admin/includes/class-theme-upgrader.php

    r61455 r61638  
    747747     * @since 2.8.0
    748748     *
    749      * @global WP_Filesystem_Base $wp_filesystem Subclass
     749     * @global WP_Filesystem_Base $wp_filesystem Filesystem subclass.
    750750     *
    751751     * @param bool   $removed
  • trunk/src/wp-admin/includes/class-walker-nav-menu-checklist.php

    r60213 r61638  
    6565     *              to match parent class for PHP 8 named parameter support.
    6666     *
    67      * @global int        $_nav_menu_placeholder
    68      * @global int|string $nav_menu_selected_id
     67     * @global int        $_nav_menu_placeholder A placeholder for the nav menu item ID.
     68     * @global int|string $nav_menu_selected_id  The ID of the selected nav menu.
    6969     *
    7070     * @param string   $output            Used to append additional content (passed by reference).
  • trunk/src/wp-admin/includes/class-walker-nav-menu-edit.php

    r60213 r61638  
    5050     *              to match parent class for PHP 8 named parameter support.
    5151     *
    52      * @global int $_wp_nav_menu_max_depth
     52     * @global int $_wp_nav_menu_max_depth The maximum depth of the nav menu.
    5353     *
    5454     * @param string   $output            Used to append additional content (passed by reference).
  • 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.
  • trunk/src/wp-admin/install.php

    r61440 r61638  
    343343 * @global string    $wp_local_package Locale code of the package.
    344344 * @global WP_Locale $wp_locale        WordPress date and time locale object.
     345 * @global wpdb      $wpdb             WordPress database abstraction object.
    345346 */
    346347$language = '';
Note: See TracChangeset for help on using the changeset viewer.