Escape the $s global.
fixes #32142. Built from https://develop.svn.wordpress.org/trunk@32298 git-svn-id: http://core.svn.wordpress.org/trunk@32269 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
35c0c59123
commit
5a84e32652
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue