[wp-trac] [WordPress Trac] #44752: wp_get_archives() with the parameter limit = 0 generates an error

WordPress Trac noreply at wordpress.org
Wed Aug 8 09:22:29 UTC 2018


#44752: wp_get_archives() with the parameter limit = 0 generates an error
---------------------------+------------------------------
 Reporter:  campusboy1987  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  assigned
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  General        |     Version:  1.2
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by earnjam):

 Duplicate of #27834 which looks like it was fixed in [28560]. Not sure why
 you'd be getting that at this point.

 Even if it got through the `! empty()` check somehow, at the very least it
 should have the word `LIMIT` in the query:
 https://github.com/WordPress/WordPress/blob/master/wp-includes/general-
 template.php#L1757

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


More information about the wp-trac mailing list