From ce7fd94edfd094a38e9451248460fcc55da45c5d Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Tue, 12 Jun 2007 20:57:58 +0000 Subject: [PATCH] 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 --- wp-includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index b4dae55102..b9b5837906 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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();