diff options
Diffstat (limited to 'wp-includes/theme.php')
| -rw-r--r-- | wp-includes/theme.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 95e3af6..984b4ee 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -363,8 +363,8 @@ function get_author_template() { function get_category_template() { $template = ''; - if ( file_exists(TEMPLATEPATH . "/category-" . get_query_var('cat') . '.php') ) - $template = TEMPLATEPATH . "/category-" . get_query_var('cat') . '.php'; + if ( file_exists(TEMPLATEPATH . "/category-" . absint( get_query_var('cat') ) . '.php') ) + $template = TEMPLATEPATH . "/category-" . absint( get_query_var('cat') ) . '.php'; elseif ( file_exists(TEMPLATEPATH . "/category.php") ) $template = TEMPLATEPATH . "/category.php"; |
