From ffffebebb18b0f9b49be123a28fb2210f9854004 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 1 Jun 2006 07:42:46 +0000 Subject: [PATCH] intval cat ID git-svn-id: https://develop.svn.wordpress.org/trunk@3824 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 )