[wp-trac] [WordPress Trac] #58087: Fix the 'data' dynamic property in WP_Term
WordPress Trac
noreply at wordpress.org
Fri Aug 16 19:20:27 UTC 2024
#58087: Fix the 'data' dynamic property in WP_Term
-------------------------------------+-------------------------------------
Reporter: antonvlasenko | Owner: hellofromTonya
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.7
Component: Taxonomy | Version: 6.3
Severity: minor | Resolution:
Keywords: php82 needs-testing | Focuses: coding-standards, php-
has-patch has-unit-tests early | compatibility
-------------------------------------+-------------------------------------
Comment (by hellofromTonya):
Discovered today: Core adds a lot of dynamic properties to `WP_Term`. For
example:
* `wp_tag_cloud()` adds `link` and `id` dynamic properties.
* `_make_cat_compat()` adds `cat_ID`, `category_count`,
`category_description`, `cat_name`, `category_nicename`,
`category_parent`.
This ticket is only dealing with the `data` dynamic property. That no
longer makes sense, given there are many other dynamic properties added
and used within Core itself.
While this ticket could be repurposed, I'm thinking it might be better to
close it. Why? The ticket is extensively all about the `data` property.
I'm thinking a new ticket needs to be opened for how to deal with all of
the dynamic properties Core adds / uses for `WP_Term`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58087#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list