mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-05 07:58:35 +01:00
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:
parent
52897df8cd
commit
32564f9332
@ -418,10 +418,10 @@ function get_page_template() {
|
|||||||
if ( $pagename_decoded !== $pagename ) {
|
if ( $pagename_decoded !== $pagename ) {
|
||||||
$templates[] = "page-{$pagename_decoded}.php";
|
$templates[] = "page-{$pagename_decoded}.php";
|
||||||
}
|
}
|
||||||
$templates[] = "page-$pagename.php";
|
$templates[] = "page-{$pagename}.php";
|
||||||
}
|
}
|
||||||
if ( $id )
|
if ( $id )
|
||||||
$templates[] = "page-$id.php";
|
$templates[] = "page-{$id}.php";
|
||||||
$templates[] = 'page.php';
|
$templates[] = 'page.php';
|
||||||
|
|
||||||
return get_query_template( 'page', $templates );
|
return get_query_template( 'page', $templates );
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user