[wp-trac] [WordPress Trac] #31061: Accept FALSE as valid value from "pre_option_" hook

WordPress Trac noreply at wordpress.org
Tue Jan 27 16:17:33 UTC 2015


#31061: Accept FALSE as valid value from "pre_option_" hook
--------------------------------+------------------------------
 Reporter:  martin.krcho        |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Options, Meta APIs  |     Version:  4.1
 Severity:  normal              |  Resolution:
 Keywords:  close               |     Focuses:  performance
--------------------------------+------------------------------

Comment (by boonebgorges):

 Can you point to an example of a publicly available plugin that expects
 `false` as a valid response from `get_option()`? I ask because it would
 almost certainly mean that the plugin has a bug in it - `false ===
 get_option( 'foo' )` will only work if `get_option( 'foo' )` hits an error
 (when a persistent cache is not in use).

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


More information about the wp-trac mailing list