mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 21:28:02 +01:00
intval cat ID
git-svn-id: https://develop.svn.wordpress.org/trunk@3824 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e7ecbbed2f
commit
ffffebebb1
@ -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…
x
Reference in New Issue
Block a user