[wp-trac] [WordPress Trac] #63610: Inconsistency in responses from get_option() for false value

WordPress Trac noreply at wordpress.org
Sat Jun 21 23:42:07 UTC 2025


#63610: Inconsistency in responses from get_option() for false value
--------------------------------+------------------------
 Reporter:  RavanH              |       Owner:  (none)
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:
Component:  Options, Meta APIs  |     Version:
 Severity:  normal              |  Resolution:  duplicate
 Keywords:                      |     Focuses:
--------------------------------+------------------------
Changes (by peterwilsoncc):

 * status:  new => closed
 * version:  6.8 =>
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Hi @RavanH and thanks for the report.

 I've closed this off as a duplicate of #32848 as the root cause of the
 issue is the same, the cache is warmed incorrectly when the options are
 first primed compared to when the data is retrieved from the database.

 The other ticket uses `null` as an example which has further complications
 than `false` but the patch on that ticket will resolve both issues.

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


More information about the wp-trac mailing list