Serialize arrays

git-svn-id: https://develop.svn.wordpress.org/trunk@10840 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-03-26 17:59:27 +00:00
parent 448d114dac
commit d532191713
1 changed files with 2 additions and 0 deletions

View File

@ -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 .= ', ';