Serialize arrays

git-svn-id: http://svn.automattic.com/wordpress/trunk@10840 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-03-26 17:59:27 +00:00
parent 0cf0733ba8
commit 022bc7646f
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 .= ', ';