Serialize arrays
git-svn-id: https://develop.svn.wordpress.org/trunk@10840 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
448d114dac
commit
d532191713
|
@ -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