[wp-trac] [WordPress Trac] #55357: Add object_id property to WP_Term class
WordPress Trac
noreply at wordpress.org
Wed Mar 9 18:23:40 UTC 2022
#55357: Add object_id property to WP_Term class
--------------------------+------------------------------------------------
Reporter: spacedmonkey | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Keywords: php81 needs-patch needs-unit-tests
Focuses: |
--------------------------+------------------------------------------------
When calling `get_terms` and `WP_Term_Query` with `fields` equal to
`all_with_object_id`, the array of `WP_Term` objects that are returned,
also have a `object_id` property set. This property is not defined as part
of the class. WordPress should not be defining dynamically properties like
this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55357>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list