Make WordPress Core


Ignore:
Timestamp:
10/02/2010 06:03:06 PM (13 years ago)
Author:
scribu
Message:

Set 'cat' query var for backwards compatibility. Fixes #15007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r15680 r15685  
    30343034
    30353035    foreach ( $list as $key => $obj ) {
    3036         $matched = count(array_intersect_assoc(get_object_vars($obj), $args));
     3036        $matched = count( array_intersect_assoc( (array) ($obj), $args ) );
    30373037        if ( ('and' == $operator && $matched == $count) || ('or' == $operator && $matched <= $count) ) {
    30383038            if ( $field )
Note: See TracChangeset for help on using the changeset viewer.