[wp-trac] [WordPress Trac] #63257: sanitize_term_field missing default $context value
WordPress Trac
noreply at wordpress.org
Wed Apr 9 13:02:14 UTC 2025
#63257: sanitize_term_field missing default $context value
-----------------------------------+------------------------------
Reporter: dilipbheda | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+------------------------------
Comment (by dilipbheda):
@audrasjb You're right, but I noticed that the documentation mentions a
`Default` value, which implies that if the last parameter is not passed,
it should default to the `'display'` context.
Ref: https://tinyurl.com/22neh87o
Or we can remove the default value mentioned in the inline docs.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63257#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list