[wp-trac] [WordPress Trac] #60214: Fix var types of parameters in `sanitize_option_{$option}` filter

WordPress Trac noreply at wordpress.org
Wed Jan 17 09:07:32 UTC 2024


#60214: Fix var types of parameters in `sanitize_option_{$option}` filter
------------------------------+-----------------------
 Reporter:  crstauf           |       Owner:  audrasjb
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  6.5
Component:  General           |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  docs
------------------------------+-----------------------
Changes (by audrasjb):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57302" 57302]:
 {{{
 #!CommitTicketReference repository="" revision="57302"
 Docs: Fix var types of parameters in `sanitize_option()` and
 `sanitize_option_{$option}`.

 The related docblocks were previously defining `$value` and
 `$original_value` as if they were of type `string`, but they can also be
 of other types, like `array`.

 Props gerardreches, crstauf, mukesh27.
 Fixes #60214.
 See #59651.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60214#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list