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:
parent
78c8d3f3f6
commit
ce7fd94edf
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user