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

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 26 19:23:41 UTC 2011


#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:                |
--------------------------+------------------------------

Comment (by Viper007Bond):

 Thanks guys. :)

 Also a few bugs I noticed:

 * `$valid_args` array is out of date (missing some args) but that's just
 there to prevent notices and make life easier by filling in the arrays.

 * `$value = $this->build_value( $compare, $query['foo'] )` can return `0`
 which means it will be ignored. I think only the week parameters are
 affected here.

 * Speaking of the week parameters, I should make use of `_wp_mysql_week()`
 in my code.

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


More information about the wp-trac mailing list