[wp-trac] [WordPress Trac] #18694: Improved date arguments for WP_Query

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 13 07:36:41 UTC 2012


#18694: Improved date arguments for WP_Query
--------------------------+------------------------------
 Reporter:  Viper007Bond  |       Owner:  viper007bond
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by Viper007Bond):

 Replying to [comment:25 scribu]:
 > For consistency with the other query classes, get_sql() should return an
 associative array.

 They only do that because they need to modify both the `JOIN` and the
 `WHERE`. My stuff is strictly `WHERE`-based so there's no need to return
 `array( 'where' => $sql_string )` is there?

 > But a bigger issue is that it's currently limited to the wp_posts table.
 It should be usable with any table.

 I hadn't thought of making it support comments. That's a great idea.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18694#comment:26>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list