Themes: Use curly braces for variables inside strings in `get_page_template() to explicitly specify the end of the variable name.

Props kuck1u.
Fixes #38625.
Built from https://develop.svn.wordpress.org/trunk@39884


git-svn-id: http://core.svn.wordpress.org/trunk@39821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2017-01-12 04:13:42 +00:00
parent 52897df8cd
commit 32564f9332
2 changed files with 3 additions and 3 deletions

View File

@ -418,10 +418,10 @@ function get_page_template() {
if ( $pagename_decoded !== $pagename ) {
$templates[] = "page-{$pagename_decoded}.php";
}
$templates[] = "page-$pagename.php";
$templates[] = "page-{$pagename}.php";
}
if ( $id )
$templates[] = "page-$id.php";
$templates[] = "page-{$id}.php";
$templates[] = 'page.php';
return get_query_template( 'page', $templates );

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-39850';
$wp_version = '4.8-alpha-39884';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.