Make WordPress Core

Ticket #59349: 59349.patch

File 59349.patch, 1.4 KB (added by upadalavipul, 17 months ago)

Added patch

  • 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
    747  *
     737 *
    748738 * @param string $_template_file Path to template file.
    749739 * @param bool   $load_once      Whether to require_once or require. Default true.
    750740 * @param array  $args           Optional. Additional arguments passed to the template.
     
    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                /*