Handle upgrade of old text widgets. Props Denis-de-Bernardy. fixes #9608
git-svn-id: https://develop.svn.wordpress.org/trunk@11030 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
30e5072c9e
commit
b9bfa4aade
@ -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…
Reference in New Issue
Block a user