Serialize arrays
git-svn-id: http://svn.automattic.com/wordpress/trunk@10840 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0cf0733ba8
commit
022bc7646f
|
@ -326,6 +326,8 @@ function populate_options() {
|
|||
$autoload = 'yes';
|
||||
|
||||
$option = $wpdb->escape($option);
|
||||
if ( is_array($value) )
|
||||
$value = serialize($value);
|
||||
$value = $wpdb->escape($value);
|
||||
if ( !empty($insert) )
|
||||
$insert .= ', ';
|
||||
|
|
Loading…
Reference in New Issue