mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 11:35:48 +00:00
Handle upgrade of old text widgets. Props Denis-de-Bernardy. fixes #9608
git-svn-id: http://svn.automattic.com/wordpress/trunk@11030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1a17f1963e
commit
1af5709771
@ -962,6 +962,8 @@ function wp_convert_widget_settings($base_name, $option_name, $settings) {
|
||||
if ( empty($settings) ) {
|
||||
$single = true;
|
||||
} else {
|
||||
if ( isset($settings['number']) )
|
||||
unset($settings['number']);
|
||||
foreach ( array_keys($settings) as $number ) {
|
||||
if ( !is_numeric($number) ) {
|
||||
$single = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user