Make WordPress Core


Ignore:
Timestamp:
01/12/2017 04:12:22 AM (7 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/template.php

    r38951 r39884  
    419419            $templates[] = "page-{$pagename_decoded}.php";
    420420        }
    421         $templates[] = "page-$pagename.php";
     421        $templates[] = "page-{$pagename}.php";
    422422    }
    423423    if ( $id )
    424         $templates[] = "page-$id.php";
     424        $templates[] = "page-{$id}.php";
    425425    $templates[] = 'page.php';
    426426
Note: See TracChangeset for help on using the changeset viewer.