mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
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';
|
$autoload = 'yes';
|
||||||
|
|
||||||
$option = $wpdb->escape($option);
|
$option = $wpdb->escape($option);
|
||||||
|
if ( is_array($value) )
|
||||||
|
$value = serialize($value);
|
||||||
$value = $wpdb->escape($value);
|
$value = $wpdb->escape($value);
|
||||||
if ( !empty($insert) )
|
if ( !empty($insert) )
|
||||||
$insert .= ', ';
|
$insert .= ', ';
|
||||||
|
Loading…
Reference in New Issue
Block a user