diff --git a/src/wp-includes/template.php b/src/wp-includes/template.php
index 69f8b76b51..32e12de564 100644
--- a/src/wp-includes/template.php
+++ b/src/wp-includes/template.php
@@ -152,7 +152,7 @@ function get_archive_template() {
 
 	$templates = array();
 
-	if ( count( $post_types ) == 1 ) {
+	if ( count( $post_types ) === 1 ) {
 		$post_type   = reset( $post_types );
 		$templates[] = "archive-{$post_type}.php";
 	}
@@ -437,7 +437,7 @@ function get_privacy_policy_template() {
 /**
  * Retrieves path of page template in current or parent template.
  *
- * Note: For block themes, use locate_block_template() function instead.
+ * Note: For block themes, use locate_block_template function instead.
  *
  * The hierarchy for this template looks like:
  *
@@ -749,7 +749,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 ) ) {
 		/*
