Make WordPress Core

Ticket #59185: 59185.2.patch

File 59185.2.patch, 1.3 KB (added by upadalavipul, 9 months ago)

need to removed one more file in unused global variable.

  • wp-includes/template.php

     
    733733 * @since 1.5.0
    734734 * @since 5.5.0 The `$args` parameter was added.
    735735 *
    736  * @global array      $posts
    737  * @global WP_Post    $post          Global post object.
    738  * @global bool       $wp_did_header
    739736 * @global WP_Query   $wp_query      WordPress Query object.
    740  * @global WP_Rewrite $wp_rewrite    WordPress rewrite component.
    741  * @global wpdb       $wpdb          WordPress database abstraction object.
    742  * @global string     $wp_version
    743  * @global WP         $wp            Current WordPress environment instance.
    744  * @global int        $id
    745  * @global WP_Comment $comment       Global comment object.
    746  * @global int        $user_ID
    747737 *
    748738 * @param string $_template_file Path to template file.
    749739 * @param bool   $load_once      Whether to require_once or require. Default true.
     
    751741 *                               Default empty array.
    752742 */
    753743function load_template( $_template_file, $load_once = true, $args = array() ) {
    754         global $posts, $post, $wp_did_header, $wp_query, $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment, $user_ID;
     744        global $wp_query;
    755745
    756746        if ( is_array( $wp_query->query_vars ) ) {
    757747                /*