WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18052


Ignore:
Timestamp:
07/10/11 01:50:55 (4 years ago)
Author:
dd32
Comment:

Just moving this to 3.2.1 for review, WP_Tax_Query was introduced in 3.1, so checking to see if this is a 3.0 or a 3.1 regression would be helpful.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18052

    • Property Milestone changed from Awaiting Review to 3.2.1
  • Ticket #18052 – Description

    initial v1  
    11'''Since WP 3.2''' 
    2 'category__and' does not filter invalid input when array given while using variables which may be valid integers or just anything depending on user input. E.g. a dropdown with categories to filter results. (what if no category or 'all' was selected?) 
     2`'category__and'` does not filter invalid input when array given while using variables which may be valid integers or just anything depending on user input. E.g. a dropdown with categories to filter results. (what if no category or 'all' was selected?) 
    33 
    44consequence: loop breaks, no results returned 
     
    6060'''My Opinion''' 
    6161 
    62 I think 'category__and' should take care of filtering the values instead of the developer having to wrap his head about this. 
     62I think `'category__and'` should take care of filtering the values instead of the developer having to wrap his head about this. 
    6363 
    6464This has cost me 1,5 days headache because the change is nowhere documentated :(