summaryrefslogtreecommitdiffstats
path: root/wp-includes/theme.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-05-16 12:33:45 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-05-16 12:33:45 +0000
commit74340c7281fac695c73ce5845c41355c29e8f6a9 (patch)
tree36643c23e311a4e27c34e3af469276e75d6cc216 /wp-includes/theme.php
parentef1c2e3e754485aaf6d2d7126d9f0b7474e7587b (diff)
downloadwordpress-mu-74340c7281fac695c73ce5845c41355c29e8f6a9.tar.gz
wordpress-mu-74340c7281fac695c73ce5845c41355c29e8f6a9.tar.xz
wordpress-mu-74340c7281fac695c73ce5845c41355c29e8f6a9.zip
WP Merge, page template validation
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1294 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/theme.php')
-rw-r--r--wp-includes/theme.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-includes/theme.php b/wp-includes/theme.php
index 984b4ee..2bff937 100644
--- a/wp-includes/theme.php
+++ b/wp-includes/theme.php
@@ -419,7 +419,7 @@ function get_page_template() {
if ( 'default' == $template )
$template = '';
- if ( !empty($template) && file_exists(TEMPLATEPATH . "/$template") )
+ if ( !empty($template) && !validate_file($template) && file_exists(TEMPLATEPATH . "/$template") )
$template = TEMPLATEPATH . "/$template";
elseif ( file_exists(TEMPLATEPATH . "/page.php") )
$template = TEMPLATEPATH . "/page.php";