diff --git src/wp-includes/template.php src/wp-includes/template.php
index 69f8b76b51..6553ae5c82 100644
--- src/wp-includes/template.php
+++ src/wp-includes/template.php
@@ -652,7 +652,6 @@ function get_singular_template() {
  *
  * @see get_query_template()
  *
- * @global array $posts
  *
  * @return string Full path to attachment template file.
  */
@@ -731,17 +730,7 @@ function locate_template( $template_names, $load = false, $require_once = true,
  * @since 1.5.0
  * @since 5.5.0 The `$args` parameter was added.
  *
- * @global array      $posts
- * @global WP_Post    $post          Global post object.
- * @global bool       $wp_did_header
  * @global WP_Query   $wp_query      WordPress Query object.
- * @global WP_Rewrite $wp_rewrite    WordPress rewrite component.
- * @global wpdb       $wpdb          WordPress database abstraction object.
- * @global string     $wp_version
- * @global WP         $wp            Current WordPress environment instance.
- * @global int        $id
- * @global WP_Comment $comment       Global comment object.
- * @global int        $user_ID
  *
  * @param string $_template_file Path to template file.
  * @param bool   $require_once   Whether to require_once or require. Default true.
@@ -749,7 +738,7 @@ function locate_template( $template_names, $load = false, $require_once = true,
  *                               Default empty array.
  */
 function load_template( $_template_file, $require_once = true, $args = array() ) {
-	global $posts, $post, $wp_did_header, $wp_query, $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment, $user_ID;
+	global $wp_query;
 
 	if ( is_array( $wp_query->query_vars ) ) {
 		/*
diff --git src/wp-includes/theme.php src/wp-includes/theme.php
index 6eab6fcc00..e5f3849e48 100644
--- src/wp-includes/theme.php
+++ src/wp-includes/theme.php
@@ -2124,8 +2124,6 @@ function add_editor_style( $stylesheet = 'editor-style.css' ) {
  *
  * @since 3.1.0
  *
- * @global array $editor_styles
- *
  * @return bool True on success, false if there were no stylesheets to remove.
  */
 function remove_editor_styles() {
@@ -2980,8 +2978,6 @@ function remove_theme_support( $feature ) {
  * @access private
  * @since 3.1.0
  * @global array               $_wp_theme_features
- * @global Custom_Image_Header $custom_image_header
- * @global Custom_Background   $custom_background
  *
  * @param string $feature The feature being removed. See add_theme_support() for the list
  *                        of possible values.
@@ -2989,7 +2985,7 @@ function remove_theme_support( $feature ) {
  */
 function _remove_theme_support( $feature ) {
 	global $_wp_theme_features;
-
+	
 	switch ( $feature ) {
 		case 'custom-header-uploads':
 			if ( ! isset( $_wp_theme_features['custom-header'] ) ) {
@@ -3518,7 +3514,7 @@ function _wp_customize_include() {
  * @since 4.7.0
  * @access private
  *
- * @global wpdb                 $wpdb         WordPress database abstraction object.
+ *
  * @global WP_Customize_Manager $wp_customize Customizer instance.
  *
  * @param string  $new_status     New post status.
@@ -3526,7 +3522,7 @@ function _wp_customize_include() {
  * @param WP_Post $changeset_post Changeset post object.
  */
 function _wp_customize_publish_changeset( $new_status, $old_status, $changeset_post ) {
-	global $wp_customize, $wpdb;
+	global $wp_customize;
 
 	$is_publishing_changeset = (
 		'customize_changeset' === $changeset_post->post_type
diff --git src/wp-includes/user.php src/wp-includes/user.php
index 9c17d1583e..e5834daae5 100644
--- src/wp-includes/user.php
+++ src/wp-includes/user.php
@@ -3507,6 +3507,7 @@ function wp_destroy_all_sessions() {
  *
  * @param int|null $site_id Optional. The site ID to get users with no role for. Defaults to the current site.
  * @return string[] Array of user IDs as strings.
+ * @global wpdb         $wpdb       WordPress database abstraction object.
  */
 function wp_get_users_with_no_role( $site_id = null ) {
 	global $wpdb;
@@ -4790,6 +4791,7 @@ All at ###SITENAME###
  *
  * @param int $request_id Request ID.
  * @return string Confirmation key.
+ * @global $wp_hasher.
  */
 function wp_generate_user_request_key( $request_id ) {
 	global $wp_hasher;
@@ -4822,6 +4824,7 @@ function wp_generate_user_request_key( $request_id ) {
  * @param string $request_id ID of the request being confirmed.
  * @param string $key        Provided key to validate.
  * @return true|WP_Error True on success, WP_Error on failure.
+ * @global $wp_hasher.
  */
 function wp_validate_user_request_key( $request_id, $key ) {
 	global $wp_hasher;
