summaryrefslogtreecommitdiffstats
path: root/wp-includes/theme.php
diff options
context:
space:
mode:
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 7e45c54..2a7ac8c 100644
--- a/wp-includes/theme.php
+++ b/wp-includes/theme.php
@@ -346,7 +346,7 @@ function get_home_template() {
function get_page_template() {
global $wp_query;
- $id = $wp_query->post->ID;
+ $id = (int) $wp_query->post->ID;
$template = get_post_meta($id, '_wp_page_template', true);
if ( 'default' == $template )