[wp-trac] [WordPress Trac] #22192: update_option() strict checks can cause false negatives

WordPress Trac noreply at wordpress.org
Tue Sep 26 15:53:55 UTC 2023


#22192: update_option() strict checks can cause false negatives
--------------------------------------+--------------------------
 Reporter:  nacin                     |       Owner:  mukesh27
     Type:  defect (bug)              |      Status:  reopened
 Priority:  normal                    |   Milestone:  6.4
Component:  Options, Meta APIs        |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  performance
--------------------------------------+--------------------------

Comment (by flixos90):

 In [changeset:"56717" 56717]:
 {{{
 #!CommitTicketReference repository="" revision="56717"
 Options, Meta APIs: Fix follow up bug when comparing values for options
 using the `pre_option_{$option}` filter.

 This fix is relevant for options such as `gmt_offset` that use a filter to
 force a specific value regardless of what is stored in the database.

 Props mamaduka, flixos90, mukesh27, spacedmonkey.
 See #22192.
 }}}

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


More information about the wp-trac mailing list