From 022bc7646f8b9fbb0c87e7aff9b6c66187e622d6 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 26 Mar 2009 17:59:27 +0000 Subject: [PATCH] Serialize arrays git-svn-id: http://svn.automattic.com/wordpress/trunk@10840 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/schema.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-admin/includes/schema.php b/wp-admin/includes/schema.php index 069bd12665..f2ec5ebb77 100644 --- a/wp-admin/includes/schema.php +++ b/wp-admin/includes/schema.php @@ -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 .= ', ';