WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #14892, comment 12


Ignore:
Timestamp:
01/08/11 18:52:39 (3 years ago)
Author:
ocean90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14892, comment 12

    v1 v2  
    55parses categories differently than tags/tax, the logic that was added for this in line 1695 is as follows: [[BR]] 
    66 
    7 $q['category__in'] = array_unique( $q['category__in'] );[[BR]] 
     7$q!['category__in'] = array_unique( $q!['category__in'] );[[BR]] 
    88 
    99Which seems to be different than the one in [15626], in that the one in [15626] casts as an array and then traverses and casts the values of the array as ints: 
    10 $qv['category__in'] = array_map('absint', (array) $qv['category__in']); [[BR]] 
     10$qv!['category__in'] = array_map('absint', (array) $qv!['category__in']); [[BR]] 
    1111 
    1212