WordPress.org

Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #14892


Ignore:
Timestamp:
09/17/2010 10:09:54 PM (8 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14892 – Description

    initial v3  
    22
    33If I may suggest changing lines 1371-1372 in /wp-includes/query.php  to this:
     4
     5{{{
    46if ( !is_array($qv['category__in']) || empty($qv['category__in']) ) {
    57        if (is_long($qv['category__in']) || is_int($qv['category__in'])){
     
    810                $qv['category__in'] = array(); 
    911        }
     12}}}
    1013
    1114I would in the same vein implement the change for category__not_in
     15
     16{{{
    1217if ( !is_array($qv['category__not_in']) || empty($qv['category__not_in']) ) {
    1318                                if (is_long($qv['category__not_in']) || is_int($qv['category__not_in'])){
     
    1621                                        $qv['category__not_in'] = array();     
    1722                                }
     23}}}
    1824
    1925I would also suggest implementing for tag__in and etc etc