[wp-trac] [WordPress Trac] #63742: Docs: Improve type annotation for global $tax parameter in WP_Terms_List_Table constructor
WordPress Trac
noreply at wordpress.org
Wed Jul 23 13:38:52 UTC 2025
#63742: Docs: Improve type annotation for global $tax parameter in
WP_Terms_List_Table constructor
------------------------------------+-----------------------------
Reporter: yashjawale | Owner: yashjawale
Type: enhancement | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: trunk
Severity: trivial | Keywords:
Focuses: docs, coding-standards |
------------------------------------+-----------------------------
The `@global` parameter documentation in the `WP_Terms_List_Table`
constructor currently uses a generic `object` type for the `$tax`
variable, but it should be more specific as `WP_Taxonomy`
Wherever the value of `$tax` is set in the codebase, it is set using
`get_taxonomy()` function which returns `WP_Taxonomy` type
This is the only place where the global parameter comment annotation is
present
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63742>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list