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

WordPress Trac noreply at wordpress.org
Wed Sep 20 16:49:05 UTC 2023


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

Comment (by joemcgill):

 To help confirm the current behavior in trunk against the changes being
 worked on in [https://github.com/WordPress/wordpress-develop/pull/5139 PR
 #5139], I've opened a separate PR that includes unit tests that
 demonstrate which loosey values currently result in a DB update and which
 do not. It may be useful to commit a set of currently passing tests so we
 can more easily see what behavior will change as a result of a fix to this
 ticket.

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


More information about the wp-trac mailing list