You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
Limit number of requested items for collection queries #1609
No way to query for all terms. With get_terms() from WordPress you can pass the number arg as 0, or it defaults to 0, to get all the terms with the associated taxonomy. The terms controller uses per_page to fill out the number arg. The default for per_page is 10, and you can't pass 0 to this argument (or any negative numbers, because it sanitizes the value with absint). This effectively makes it impossible to query for all terms in a taxonomy.
No way to query for all terms. With
get_terms()from WordPress you can pass thenumberarg as 0, or it defaults to 0, to get all the terms with the associated taxonomy. The terms controller usesper_pageto fill out thenumberarg. The default forper_pageis 10, and you can't pass 0 to this argument (or any negative numbers, because it sanitizes the value withabsint). This effectively makes it impossible to query for all terms in a taxonomy.