Make WordPress Core

Ticket #38625: 38625.diff

File 38625.diff, 575 bytes (added by kuck1u, 8 years ago)
  • src/wp-includes/template.php

     
    418418                if ( $pagename_decoded !== $pagename ) {
    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
    427427        return get_query_template( 'page', $templates );