[wp-trac] [WordPress Trac] #63257: sanitize_term_field missing default $context value
WordPress Trac
noreply at wordpress.org
Wed Feb 18 07:09:06 UTC 2026
#63257: sanitize_term_field missing default $context value
------------------------------+-----------------------
Reporter: dilipbheda | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 7.0
Component: Taxonomy | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+-----------------------
Changes (by wildworks):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"61672" 61672]:
{{{
#!CommitTicketReference repository="" revision="61672"
Docs: Remove default value from `sanitize_term_field()` PHPDoc.
The `$context` parameter in `sanitize_term_field()` is required and has no
default value in the function signature. The PHPDoc previously stated
`Default 'display'`, which was incorrect and could lead callers to assume
the argument was optional.
Follow-up to [49789].
Props audrasjb, dilipbheda, johnbillion, mindctrl, mukesh27, Presskopp,
rollybueno, SirLouen, vishalkakadiya, wildworks
Fixes #63257.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63257#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list