Avoid functions.php from ever being treated as a page template. fixes #16689.
git-svn-id: https://develop.svn.wordpress.org/trunk@17539 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
21c2c70e25
commit
711abb67bc
@ -181,6 +181,9 @@ function get_page_templates() {
|
||||
if ( false !== strpos($basename, '/') )
|
||||
continue;
|
||||
|
||||
if ( 'functions.php' == $basename )
|
||||
continue;
|
||||
|
||||
$template_data = implode( '', file( $template ));
|
||||
|
||||
$name = '';
|
||||
|
Loading…
Reference in New Issue
Block a user