WordPress.org

Plugin Directory

Changeset 1586826


Ignore:
Timestamp:
02/01/17 22:50:29 (8 weeks ago)
Author:
kevinlangleyjr
Message:

Checking if array_key_exists instead of isset since some values within the array are null. Incrementing to version 1.5.3

Location:
widget-settings-importexport/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • widget-settings-importexport/trunk/class-widget-data.php

    r1566725 r1586826  
    285285            foreach ( $import_widgets as $import_widget ) : 
    286286                //if the sidebar exists 
    287                 if ( isset( $current_sidebars[$import_sidebar] ) ) : 
     287                if ( array_key_exists( $import_sidebar, $current_sidebars ) ) : 
    288288                    $title = trim( substr( $import_widget, 0, strrpos( $import_widget, '-' ) ) ); 
    289289                    $index = trim( substr( $import_widget, strrpos( $import_widget, '-' ) + 1 ) ); 
     
    305305                    } else { 
    306306                        $current_widget_data[$new_index] = $widget_data[$title][$index]; 
    307                         $current_multiwidget = $current_widget_data['_multiwidget']; 
    308                         $new_multiwidget = isset($widget_data[$title]['_multiwidget']) ? $widget_data[$title]['_multiwidget'] : false; 
     307                        $current_multiwidget = array_key_exists('_multiwidget', $current_widget_data) ? $current_widget_data['_multiwidget'] : false; 
     308                        $new_multiwidget = array_key_exists('_multiwidget', $widget_data[$title]) ? $widget_data[$title]['_multiwidget'] : false; 
    309309                        $multiwidget = ($current_multiwidget != $new_multiwidget) ? $current_multiwidget : 1; 
    310310                        unset( $current_widget_data['_multiwidget'] ); 
  • widget-settings-importexport/trunk/readme.txt

    r1586823 r1586826  
    44Requires at least: 2.8 
    55Tested up to: 4.7.2 
    6 Stable tag: 1.5.2 
     6Stable tag: 1.5.3 
    77License: GPLv2 or later 
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html 
  • widget-settings-importexport/trunk/widget-data.php

    r1586823 r1586826  
    55  Author: Voce Communications - Kevin Langley, Sean McCafferty, Mark Parolisi 
    66  Author URI: http://vocecommunications.com 
    7   Version: 1.5.2 
     7  Version: 1.5.3 
    88 * ****************************************************************** 
    99  Copyright 2011-2011 Voce Communications 
Note: See TracChangeset for help on using the changeset viewer.