diff --git a/wp-includes/template.php b/wp-includes/template.php index cfe9bb06aa..e43ba321e5 100644 --- a/wp-includes/template.php +++ b/wp-includes/template.php @@ -494,12 +494,18 @@ function locate_template($template_names, $load = false, $require_once = true ) function load_template( $_template_file, $require_once = true ) { global $posts, $post, $wp_did_header, $wp_query, $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment, $user_ID; - if ( is_array( $wp_query->query_vars ) ) + if ( is_array( $wp_query->query_vars ) ) { extract( $wp_query->query_vars, EXTR_SKIP ); + } - if ( $require_once ) + if ( isset( $s ) ) { + $s = esc_attr( $s ); + } + + if ( $require_once ) { require_once( $_template_file ); - else + } else { require( $_template_file ); + } } diff --git a/wp-includes/version.php b/wp-includes/version.php index c76982d5e4..0315199aae 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-alpha-32297'; +$wp_version = '4.3-alpha-32298'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.