Opened 5 years ago
Closed 4 years ago
#55357 closed defect (bug) (duplicate)
Add object_id property to WP_Term class
| Reported by: | spacedmonkey | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Taxonomy | Version: | |
| Severity: | normal | Keywords: | php82 needs-patch needs-unit-tests |
| Cc: | Focuses: |
Description
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.
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@spacedmonkey I've done some test runs against PHP 8.2 already and guess what ? There are a hell of a lot more of these....
I actually have prepared commits for the bulk of them already. Wouldn't mind doing a pair programming session to review them all. Would you be up for that ? /cc @hellofromTonya