intval cat ID
git-svn-id: http://svn.automattic.com/wordpress/trunk@3824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4a47234d84
commit
2fce9d926e
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue