WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #30846, comment 4


Ignore:
Timestamp:
12/27/2014 04:34:36 AM (6 years ago)
Author:
philbirnie
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30846, comment 4

    initial v1  
    11Thanks for the unit test - I'll use that in the future. I figured it out.
    22
    3 I was attempting to run $query->get_posts() after instantiating the query.  This was what was causing the extra 'AND' in the MySQL query mentioned in my previous remarks. 
     3I was attempting to run `$query->get_posts()` after instantiating the query.  This was what was causing the extra 'AND' in the MySQL query mentioned in my previous remarks. 
    44
    5 I assumed that $query->get_posts would ''not'' modify the query when run after instantiation, but that doesn't seem to be the case.
     5I assumed that `$query->get_posts` would ''not'' modify the query when run after instantiation, but that doesn't seem to be the case.