[wp-trac] [WordPress Trac] #27834: wp_get_archives invalid query

WordPress Trac noreply at wordpress.org
Fri May 23 18:27:12 UTC 2014


#27834: wp_get_archives invalid query
-------------------------------------------------+-------------------------
 Reporter:  westi                                |       Owner:
     Type:  defect (bug)                         |  wonderboymusic
 Priority:  normal                               |      Status:  closed
Component:  Posts, Post Types                    |   Milestone:  4.0
 Severity:  normal                               |     Version:  3.9
 Keywords:  good-first-bug has-patch needs-      |  Resolution:  fixed
  testing                                        |     Focuses:  template
-------------------------------------------------+-------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"28560"]:
 {{{
 #!CommitTicketReference repository="" revision="28560"
 Truly check for `! empty()` instead of falsey `''` when determining
 whether to add `LIMIT` clause to SQL in `wp_get_archives()`.

 Props jjeaton for the initial patch.
 Fixes #27834.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27834#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list