[wp-trac] [WordPress Trac] #63257: sanitize_term_field missing default $context value
WordPress Trac
noreply at wordpress.org
Thu Apr 10 08:33:33 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 Presskopp):
Defining the default {{{$context = 'display'}}} avoids errors if the
function gets called without the $context parameter so it's making sense
to me. For that reason it will be possible to also call the function with
only the first 4 parametrs, if needed. Also it is clearer in regards to
the inline documentation.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63257#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list