[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 10:07:32 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):
Ah good catch. The essentially triple negative of `! empty( 0 )` is tough
to follow.
I also didn't initially notice that down below that we pass on the value
of `$r['limit']` to the query no matter what, which is why it still got
through.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44752#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list