From 2fce9d926eb15e1e0f7f46bd442ffb2b36a59e9b Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 1 Jun 2006 07:42:46 +0000 Subject: [PATCH] intval cat ID git-svn-id: http://svn.automattic.com/wordpress/trunk@3824 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/query.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/query.php b/wp-includes/query.php index 79cd3d8125..dd55bc8b85 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -710,6 +710,7 @@ class WP_Query { $cat_array = preg_split('/[,\s]+/', $q['cat']); $in_cats = $out_cats = ''; foreach ( $cat_array as $cat ) { + $cat = intval($cat); $in = strstr($cat, '-') ? false : true; $cat = trim($cat, '-'); if ( $in )