wordpress/wp-content/themes/basic/themify/themify-builder/modules/module-widget.php
/*
     * Sanitize keys for widget fields
     * This is required to provide backward compatibility with how widget data was saved.
     *
     * @return array
     * @since 3.2.0
     */
Sanitize keys for widget fields
This is required to provide backward compatibility with how widget data was saved.


Sanitize keys for widget fields This is required to provide backward compatibility with how widget data was saved .
public static function sanitize_widget_instance($instance) {
	if (is_array($instance)) {
	    foreach ($instance as $key => $val) {
		preg_match('/.*\[\d\]\[(.*)\]/', $key, $matches);
		if (isset($matches[1])) {
		    unset($instance[$key]);
		    $instance[$matches[1]] = $val;
		}
	    }
	}
	return $instance;
    }
public static function sanitize_widget_instance ( $ instance ) { if ( is_array ( $ instance ) ) { foreach ( $ instance as $ key => $ val ) { preg_match ( '/.*\[\d\]\[(.*)\]/' , $ key , $ matches ) ; if ( isset ( $ matches [ 1 ] ) ) { unset ( $ instance [ $ key ] ) ; $ instance [ $ matches [ 1 ] ] = $ val ; } } } return $ instance ; }
Sanitize keys for widget fields
 This is required to provide backward compatibility with how widget data was saved.
Sanitize keys for widget fields This is required to provide backward compatibility with how widget data was saved .