Subject: [wp-svn] [39884]
trunk/src/wp-includes/template.php: Themes: Use
curly braces for variables inside strings in
`get_page_template() to explicitly specify the end
of the variable name.



Revision 39884 Author SergeyBiryukov Date 2017-01-12 04:12:22 +0000 (Thu, 12 Jan 2017)
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.
Modified Paths Diff Modified: trunk/src/wp-includes/template.php
--- trunk/src/wp-includes/template.php	2017-01-11 21:35:25 UTC (rev 39883)
+++ trunk/src/wp-includes/template.php	2017-01-12 04:12:22 UTC (rev 39884)
@@ -418,10 +418,10 @@
 		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 );
_______________________________________________
wp-svn mailing list
[email protected]
http://lists.wordpress.org/mailman/listinfo/wp-svn



Programming list archiving by: Enterprise Git Hosting