Opened 5 years ago
Closed 5 years ago
#48913 closed enhancement (fixed)
Update documentation for the get_categories page
Reported by: | dingo_d | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.4 | Priority: | normal |
Severity: | normal | Version: | 5.4 |
Component: | Taxonomy | Keywords: | has-patch 2nd-opinion |
Focuses: | docs | Cc: |
Description
Currently, the docblock for https://developer.wordpress.org/reference/functions/get_categories/ page says
If you change the type to ‘link’ in the arguments, then the link categories will be returned instead. Also all categories will be updated to be backward compatible with pre-2.3 plugins and themes.
The type argument has been deprecated so it shouldn't really be suggested since it will throw a notice in development if used.
I'll attach a patch with the proposed change.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
A patched with updated docblock