summaryrefslogtreecommitdiffstats
path: root/wp-includes/category-template.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-03-23 17:46:02 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-03-23 17:46:02 +0000
commit2e96b99ceb195735a641e299f3209840cc101052 (patch)
tree374954833d10017ae7adb6a031d54fd0dc36f3a2 /wp-includes/category-template.php
parentbf6a271edebcceb76d6e378156e92fe72c1fbb18 (diff)
downloadwordpress-mu-2e96b99ceb195735a641e299f3209840cc101052.tar.gz
wordpress-mu-2e96b99ceb195735a641e299f3209840cc101052.tar.xz
wordpress-mu-2e96b99ceb195735a641e299f3209840cc101052.zip
Ryan casts an int and catches a fish, someone buy him a pint! merge to 5092
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@933 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/category-template.php')
-rw-r--r--wp-includes/category-template.php3
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);