Customizer Export/Import - Version 0.8

Version Description

Download this release

Release Info

Developer justinbusa
Plugin Icon 128x128 Customizer Export/Import
Version 0.8
Comparing to
See all releases

Code changes from version 0.7 to 0.8

classes/class-cei-core.php CHANGED
@@ -187,12 +187,7 @@ final class CEI_Core {
187
  $option_keys = apply_filters( 'cei_export_option_keys', array() );
188
 
189
  foreach ( $option_keys as $option_key ) {
190
-
191
- $option_value = get_option( $option_key );
192
-
193
- if ( $option_value ) {
194
- $data['options'][ $option_key ] = $option_value;
195
- }
196
  }
197
 
198
  if( function_exists( 'wp_get_custom_css_post' ) ) {
187
  $option_keys = apply_filters( 'cei_export_option_keys', array() );
188
 
189
  foreach ( $option_keys as $option_key ) {
190
+ $data['options'][ $option_key ] = get_option( $option_key );
 
 
 
 
 
191
  }
192
 
193
  if( function_exists( 'wp_get_custom_css_post' ) ) {
customizer-export-import.php CHANGED
@@ -3,14 +3,14 @@
3
  * Plugin Name: Customizer Export/Import
4
  * Plugin URI: http://www.wpbeaverbuilder.com/wordpress-customizer-export-import-plugin/?utm_source=external&utm_medium=customizer-export&utm_campaign=plugins-page
5
  * Description: Adds settings export and import functionality to the WordPress customizer.
6
- * Version: 0.7
7
  * Author: The Beaver Builder Team
8
  * Author URI: http://www.wpbeaverbuilder.com/?utm_source=external&utm_medium=customizer-export&utm_campaign=plugins-page
9
  * License: GNU General Public License v2.0
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
  * Text Domain: customizer-export-import
12
  */
13
- define( 'CEI_VERSION', '0.7' );
14
  define( 'CEI_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
15
  define( 'CEI_PLUGIN_URL', plugins_url( '/', __FILE__ ) );
16
 
@@ -22,4 +22,4 @@ add_action( 'plugins_loaded', 'CEI_Core::load_plugin_textdomain' );
22
  add_action( 'customize_controls_print_scripts', 'CEI_Core::controls_print_scripts' );
23
  add_action( 'customize_controls_enqueue_scripts', 'CEI_Core::controls_enqueue_scripts' );
24
  add_action( 'customize_register', 'CEI_Core::init', 999999 );
25
- add_action( 'customize_register', 'CEI_Core::register' );
3
  * Plugin Name: Customizer Export/Import
4
  * Plugin URI: http://www.wpbeaverbuilder.com/wordpress-customizer-export-import-plugin/?utm_source=external&utm_medium=customizer-export&utm_campaign=plugins-page
5
  * Description: Adds settings export and import functionality to the WordPress customizer.
6
+ * Version: 0.8
7
  * Author: The Beaver Builder Team
8
  * Author URI: http://www.wpbeaverbuilder.com/?utm_source=external&utm_medium=customizer-export&utm_campaign=plugins-page
9
  * License: GNU General Public License v2.0
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
  * Text Domain: customizer-export-import
12
  */
13
+ define( 'CEI_VERSION', '0.8' );
14
  define( 'CEI_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
15
  define( 'CEI_PLUGIN_URL', plugins_url( '/', __FILE__ ) );
16
 
22
  add_action( 'customize_controls_print_scripts', 'CEI_Core::controls_print_scripts' );
23
  add_action( 'customize_controls_enqueue_scripts', 'CEI_Core::controls_enqueue_scripts' );
24
  add_action( 'customize_register', 'CEI_Core::init', 999999 );
25
+ add_action( 'customize_register', 'CEI_Core::register' );
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: justinbusa
3
  Tags: customizer, customizer export, customizer import, export, import, settings, customizer settings, theme settings, theme options
4
  Requires at least: 3.6
5
- Tested up to: 4.9
6
  Stable tag: trunk
7
  License: GPL2+
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -38,7 +38,7 @@ Developers can also have arbitrary options that aren't part of the customizer ex
38
  }
39
 
40
  add_filter( 'cei_export_option_keys', 'my_export_option_keys' );
41
-
42
  = Known Issues =
43
 
44
  This plugin currently only works for active themes, not themes that are being previewed with either the Theme Test Drive plugin or the new customizer theme preview.
@@ -88,3 +88,7 @@ Please visit our blog for more info on the [Customizer Export/Import plugin](htt
88
  = Version 0.7 =
89
 
90
  - Added support for exporting and importing custom CSS.
 
 
 
 
2
  Contributors: justinbusa
3
  Tags: customizer, customizer export, customizer import, export, import, settings, customizer settings, theme settings, theme options
4
  Requires at least: 3.6
5
+ Tested up to: 4.9.8
6
  Stable tag: trunk
7
  License: GPL2+
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
38
  }
39
 
40
  add_filter( 'cei_export_option_keys', 'my_export_option_keys' );
41
+
42
  = Known Issues =
43
 
44
  This plugin currently only works for active themes, not themes that are being previewed with either the Theme Test Drive plugin or the new customizer theme preview.
88
  = Version 0.7 =
89
 
90
  - Added support for exporting and importing custom CSS.
91
+
92
+ = Version 0.8 =
93
+
94
+ - Added support for option data that has an empty value.