!get_option broken in WordPress 2.2?
-
I have the following code in my plugin. Under WordPress 2.1.3 and previous it works correctly when the option is not in the options table:
if (!get_option(“awsom_pixgallery_db_version”)) {
add_option(“awsom_pixgallery_db_version”, $awsom_pixgallery_db_version);
}Under WordPress 2.2 it is ignored and returns a true no matter if the option is there or not and creates a duplicate entry.
I have confirmed this by doing 2 plain vanilla installs of the defaults for both versions and doing the exact same plugin install procedure.
This appears to be a huge bug with the get_option function and may be leading to the cause of many plugins breaking in WordPress 2.2
Is this being addressed? Will we see an update soon to fix this? I can rewrite the check to be the reverse, but that’s annoying and doesn’t address the issue.
- The topic ‘!get_option broken in WordPress 2.2?’ is closed to new replies.