[wp-trac] [WordPress Trac] #48913: Update documentation for the get_categories page
WordPress Trac
noreply at wordpress.org
Sun Dec 8 22:43:55 UTC 2019
#48913: Update documentation for the get_categories page
-------------------------+-----------------------------------
Reporter: dingo_d | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: trunk
Severity: normal | Keywords: has-patch 2nd-opinion
Focuses: docs |
-------------------------+-----------------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48913>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list