mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-10 20:20:09 +00: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. git-svn-id: https://develop.svn.wordpress.org/trunk@39884 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user