[wp-trac] [WordPress Trac] #61890: Handle WP_Term known, named dynamic properties for PHP 8.2
WordPress Trac
noreply at wordpress.org
Wed Aug 21 18:19:12 UTC 2024
#61890: Handle WP_Term known, named dynamic properties for PHP 8.2
-------------------------------------+-------------------------------------
Reporter: hellofromTonya | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.7
Component: Taxonomy | Version:
Severity: minor | Resolution:
Keywords: php82 has-patch has- | Focuses: coding-standards, php-
unit-tests | compatibility
-------------------------------------+-------------------------------------
Comment (by antonvlasenko):
> Core adds and uses a lot of other known, named dynamic properties.
Yes, this has been discovered in https://github.com/WordPress/wordpress-
develop/pull/6426.
I believe the `WP_Term::$object_id` property should also be added to the
list of known properties (i.e., declared on the `WP_Term` class), as it is
added by the `WP_Term_Query::get_terms()` method.
Additionally, the `WP_Term::$auto_add` property is added by the
`WP_REST_Menus_Controller::get_term()` method.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61890#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list