[wp-trac] [WordPress Trac] #47745: get_term will send back term_id as string if $filter = 'edit'. Use of 'edit' causes issues with hooks in edit-tag-form passing a non-conforming WP_Term object as $tag
WordPress Trac
noreply at wordpress.org
Thu Aug 15 06:14:44 UTC 2019
#47745: get_term will send back term_id as string if $filter = 'edit'. Use of
'edit' causes issues with hooks in edit-tag-form passing a non-conforming
WP_Term object as $tag
-------------------------------+-------------------------------
Reporter: majemedia | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: trunk
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: coding-standards
-------------------------------+-------------------------------
Changes (by talldanwp):
* keywords: dev-feedback needs-dev-note => reporter-feedback
Comment:
Hi Majemedia. Thanks for the ticket. I just wanted to double-check that
the issue you're referring to is that `term_id` is a `string` instead of a
`number`? Is that causing any specific issues for you?
`term_id` being a string is a known issue. Unfortunately changing this
would break backwards compatibility.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47745#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list