Force $autoload to be either "yes" or "no". see #4440. props Nazgul

git-svn-id: https://develop.svn.wordpress.org/trunk@5686 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-06-12 20:57:58 +00:00
parent 78c8d3f3f6
commit ce7fd94edf
1 changed files with 1 additions and 0 deletions

View File

@ -324,6 +324,7 @@ function add_option($name, $value = '', $description = '', $autoload = 'yes') {
}
$value = maybe_serialize($value);
$autoload = ( 'no' === $autoload ) ? 'no' : 'yes';
if ( 'yes' == $autoload ) {
$alloptions = wp_load_alloptions();