[wp-hackers] Nasty get_option()/get_settings() bug
skeltoac at gmail.com
Wed Jan 11 18:09:53 GMT 2006
On 1/11/06, Mark Jaquith <mark.wordpress at txfx.net> wrote:
> I was thinking about having wp_cache_get() return NULL for values not
> in the option cache, so that FALSE can mean FALSE, as it would if you
> had queried the database for the option... but I'm open to suggestions.
I was thinking we should serialize ALL options (so we can store
booleans) and stop relying on get_* functions to tell us that an
option doesn't exist. It would be a cinch to write a function
option_exists() and start serializing all options.
This would also reduce some of the confusion that develops when
escaping/unescaping strings for the database.
More information about the wp-hackers