intval cat ID

git-svn-id: https://develop.svn.wordpress.org/trunk@3824 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-06-01 07:42:46 +00:00
parent e7ecbbed2f
commit ffffebebb1
1 changed files with 1 additions and 0 deletions

View File

@ -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 )