diff options
Diffstat (limited to 'wp-includes/category-template.php')
-rw-r--r-- | wp-includes/category-template.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index 32ace67..db45dc0 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -65,8 +65,9 @@ function get_category_parents($id, $link = FALSE, $separator = '/', $nicename = function get_the_category($id = false) { global $post, $category_cache, $blog_id; + $id = (int) $id; if ( !$id ) - $id = $post->ID; + $id = (int) $post->ID; if ( !isset($category_cache[$blog_id][$id]) ) update_post_category_cache($id); |