diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php index e79642dc0b46e..f52f5f5c1d80f 100644 --- a/src/wp-admin/includes/ajax-actions.php +++ b/src/wp-admin/includes/ajax-actions.php @@ -1241,7 +1241,7 @@ function wp_ajax_get_tagcloud() { * * @since 3.1.0 * - * @global int $post_id + * @global int $post_id Post ID. * * @param string $action Action to perform. */ @@ -2353,9 +2353,9 @@ function wp_ajax_widgets_order() { * * @since 3.1.0 * - * @global array $wp_registered_widgets - * @global array $wp_registered_widget_controls - * @global array $wp_registered_widget_updates + * @global array $wp_registered_widgets Registered widgets. + * @global array $wp_registered_widget_controls Registered widget controls. + * @global array $wp_registered_widget_updates Registered widget updates. */ function wp_ajax_save_widget() { global $wp_registered_widgets, $wp_registered_widget_controls, $wp_registered_widget_updates; @@ -2462,7 +2462,7 @@ function wp_ajax_save_widget() { * * @since 3.9.0 * - * @global WP_Customize_Manager $wp_customize + * @global WP_Customize_Manager $wp_customize Customizer manager object. */ function wp_ajax_update_widget() { global $wp_customize; @@ -3588,7 +3588,7 @@ function wp_ajax_get_revision_diffs() { * * @since 3.8.0 * - * @global array $_wp_admin_css_colors + * @global array $_wp_admin_css_colors Registered admin CSS color schemes. */ function wp_ajax_save_user_color_scheme() { global $_wp_admin_css_colors; @@ -3617,8 +3617,8 @@ function wp_ajax_save_user_color_scheme() { * * @since 3.9.0 * - * @global array $themes_allowedtags - * @global array $theme_field_defaults + * @global array $themes_allowedtags Allowed HTML tags for theme descriptions. + * @global array $theme_field_defaults Default theme fields. */ function wp_ajax_query_themes() { global $themes_allowedtags, $theme_field_defaults; @@ -3750,8 +3750,8 @@ function wp_ajax_query_themes() { * * @global WP_Post $post Global post object. * @global WP_Embed $wp_embed WordPress Embed object. - * @global WP_Scripts $wp_scripts - * @global int $content_width + * @global WP_Scripts $wp_scripts Script dependencies object. + * @global int $content_width Shared post content width. */ function wp_ajax_parse_embed() { global $post, $wp_embed, $content_width; @@ -3891,7 +3891,7 @@ function wp_ajax_parse_embed() { * @since 4.0.0 * * @global WP_Post $post Global post object. - * @global WP_Scripts $wp_scripts + * @global WP_Scripts $wp_scripts Script dependencies object. */ function wp_ajax_parse_media_shortcode() { global $post, $wp_scripts; diff --git a/src/wp-admin/includes/class-core-upgrader.php b/src/wp-admin/includes/class-core-upgrader.php index 184376654295e..8a712a4afbc76 100644 --- a/src/wp-admin/includes/class-core-upgrader.php +++ b/src/wp-admin/includes/class-core-upgrader.php @@ -48,7 +48,7 @@ public function upgrade_strings() { * @since 2.8.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. - * @global callable $_wp_filesystem_direct_method + * @global callable $_wp_filesystem_direct_method Filesystem direct method callback. * * @param object $current Response object for whether WordPress is current. * @param array $args { diff --git a/src/wp-admin/includes/class-custom-image-header.php b/src/wp-admin/includes/class-custom-image-header.php index f95f9bc95dfe5..eb65605728062 100644 --- a/src/wp-admin/includes/class-custom-image-header.php +++ b/src/wp-admin/includes/class-custom-image-header.php @@ -268,7 +268,7 @@ public function take_action() { * * @since 3.0.0 * - * @global array $_wp_default_headers + * @global array $_wp_default_headers Default headers registered for themes. */ public function process_default_headers() { global $_wp_default_headers; diff --git a/src/wp-admin/includes/class-theme-upgrader.php b/src/wp-admin/includes/class-theme-upgrader.php index 47062d3fd60dc..9a963d433cf7e 100644 --- a/src/wp-admin/includes/class-theme-upgrader.php +++ b/src/wp-admin/includes/class-theme-upgrader.php @@ -746,7 +746,7 @@ public function current_after( $response, $theme ) { * * @since 2.8.0 * - * @global WP_Filesystem_Base $wp_filesystem Subclass + * @global WP_Filesystem_Base $wp_filesystem Filesystem subclass. * * @param bool $removed * @param string $local_destination diff --git a/src/wp-admin/includes/class-walker-nav-menu-checklist.php b/src/wp-admin/includes/class-walker-nav-menu-checklist.php index 099d2500762bb..b4e4f1a48049a 100644 --- a/src/wp-admin/includes/class-walker-nav-menu-checklist.php +++ b/src/wp-admin/includes/class-walker-nav-menu-checklist.php @@ -64,8 +64,8 @@ public function end_lvl( &$output, $depth = 0, $args = null ) { * @since 5.9.0 Renamed `$item` to `$data_object` and `$id` to `$current_object_id` * to match parent class for PHP 8 named parameter support. * - * @global int $_nav_menu_placeholder - * @global int|string $nav_menu_selected_id + * @global int $_nav_menu_placeholder A placeholder for the nav menu item ID. + * @global int|string $nav_menu_selected_id The ID of the selected nav menu. * * @param string $output Used to append additional content (passed by reference). * @param WP_Post $data_object Menu item data object. diff --git a/src/wp-admin/includes/class-walker-nav-menu-edit.php b/src/wp-admin/includes/class-walker-nav-menu-edit.php index 66ea47bb1fd0e..44a57c0c99f26 100644 --- a/src/wp-admin/includes/class-walker-nav-menu-edit.php +++ b/src/wp-admin/includes/class-walker-nav-menu-edit.php @@ -49,7 +49,7 @@ public function end_lvl( &$output, $depth = 0, $args = null ) {} * @since 5.9.0 Renamed `$item` to `$data_object` and `$id` to `$current_object_id` * to match parent class for PHP 8 named parameter support. * - * @global int $_wp_nav_menu_max_depth + * @global int $_wp_nav_menu_max_depth The maximum depth of the nav menu. * * @param string $output Used to append additional content (passed by reference). * @param WP_Post $data_object Menu item data object. diff --git a/src/wp-admin/includes/class-wp-comments-list-table.php b/src/wp-admin/includes/class-wp-comments-list-table.php index 78d6215376569..1feaeb3283bcd 100644 --- a/src/wp-admin/includes/class-wp-comments-list-table.php +++ b/src/wp-admin/includes/class-wp-comments-list-table.php @@ -31,7 +31,7 @@ class WP_Comments_List_Table extends WP_List_Table { * * @see WP_List_Table::__construct() for more information on default arguments. * - * @global int $post_id + * @global int $post_id The ID of the post to show comments for. * * @param array $args An associative array of arguments. */ @@ -224,8 +224,7 @@ public function get_per_page( $comment_status = 'all' ) { /** * Displays a message when no comments are found. - * - * @global string $comment_status + * @global string $comment_status The current comment status filter. */ public function no_items() { global $comment_status; @@ -242,9 +241,9 @@ public function no_items() { /** * Returns an array of comment status links. * - * @global int $post_id - * @global string $comment_status - * @global string $comment_type + * @global int $post_id The ID of the post to show comments for. + * @global string $comment_status The current comment status. + * @global string $comment_type The current comment type. * * @return array Comment status HTML links keyed by view. */ @@ -412,8 +411,8 @@ protected function get_bulk_actions() { /** * Displays extra controls between bulk actions and pagination. * - * @global string $comment_status - * @global string $comment_type + * @global string $comment_status Current comment status. + * @global string $comment_type Current comment type. * * @param string $which The location of the extra table nav markup: Either 'top' or 'bottom'. */ @@ -485,7 +484,7 @@ public function current_action() { /** * Gets the list of columns. * - * @global int $post_id + * @global int $post_id The ID of the post comments are being shown for. * * @return string[] Array of column titles keyed by their column name. */ @@ -1011,7 +1010,7 @@ public function column_comment( $comment ) { /** * Outputs the author column. * - * @global string $comment_status + * @global string $comment_status The current comment status. * * @param WP_Comment $comment The comment object. */ diff --git a/src/wp-admin/install.php b/src/wp-admin/install.php index 7fcacab9bd6c9..8083e55fc115c 100644 --- a/src/wp-admin/install.php +++ b/src/wp-admin/install.php @@ -342,6 +342,7 @@ function display_setup_form( $error = null ) { /** * @global string $wp_local_package Locale code of the package. * @global WP_Locale $wp_locale WordPress date and time locale object. + * @global wpdb $wpdb WordPress database abstraction object. */ $language = ''; if ( ! empty( $_REQUEST['language'] ) ) {