Import / Export Customizer Settings - Version 1.0.2

Version Description

  • Fix: Security Update.
Download this release

Release Info

Developer brainstormworg
Plugin Icon Import / Export Customizer Settings
Version 1.0.2
Comparing to
See all releases

Code changes from version 1.0.1 to 1.0.2

astra-import-export.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Import / Export Customizer Settings
4
  * Plugin URI: https://wpastra.com/
5
  * Description: This plugin is an add-on for the Astra WordPress Theme. It will help in Import Export Customizer settings.
6
- * Version: 1.0.1
7
  * Author: Brainstorm Force
8
  * Author URI: http://www.brainstormforce.com
9
  * Text Domain: astra-import-export
@@ -14,7 +14,7 @@
14
  /**
15
  * Set constants.
16
  */
17
- define( 'ASTRA_IMPORT_EXPORT_VER', '1.0.1' );
18
  define( 'ASTRA_IMPORT_EXPORT_FILE', __FILE__ );
19
  define( 'ASTRA_IMPORT_EXPORT_BASE', plugin_basename( ASTRA_IMPORT_EXPORT_FILE ) );
20
  define( 'ASTRA_IMPORT_EXPORT_DIR', plugin_dir_path( ASTRA_IMPORT_EXPORT_FILE ) );
3
  * Plugin Name: Import / Export Customizer Settings
4
  * Plugin URI: https://wpastra.com/
5
  * Description: This plugin is an add-on for the Astra WordPress Theme. It will help in Import Export Customizer settings.
6
+ * Version: 1.0.2
7
  * Author: Brainstorm Force
8
  * Author URI: http://www.brainstormforce.com
9
  * Text Domain: astra-import-export
14
  /**
15
  * Set constants.
16
  */
17
+ define( 'ASTRA_IMPORT_EXPORT_VER', '1.0.2' );
18
  define( 'ASTRA_IMPORT_EXPORT_FILE', __FILE__ );
19
  define( 'ASTRA_IMPORT_EXPORT_BASE', plugin_basename( ASTRA_IMPORT_EXPORT_FILE ) );
20
  define( 'ASTRA_IMPORT_EXPORT_DIR', plugin_dir_path( ASTRA_IMPORT_EXPORT_FILE ) );
inc/classes/class-astra-import-export-loader.php CHANGED
@@ -138,7 +138,7 @@ if ( ! class_exists( 'Astra_Import_Export_Loader' ) ) {
138
  if ( empty( $filename ) ) {
139
  return;
140
  }
141
- $file_ext = explode( '.', $filename );
142
  $extension = end( $file_ext );
143
 
144
  if ( 'json' !== $extension ) {
@@ -212,7 +212,7 @@ if ( ! class_exists( 'Astra_Import_Export_Loader' ) ) {
212
  $theme_options = apply_filters( 'astra_export_data', $theme_options );
213
  nocache_headers();
214
  header( 'Content-Type: application/json; charset=utf-8' );
215
- header( 'Content-Disposition: attachment; filename=astra-settings-export-' . date( 'm-d-Y' ) . '.json' );
216
  header( 'Expires: 0' );
217
  echo wp_json_encode( $theme_options );
218
  // Start the download.
138
  if ( empty( $filename ) ) {
139
  return;
140
  }
141
+ $file_ext = explode( '.', $filename );
142
  $extension = end( $file_ext );
143
 
144
  if ( 'json' !== $extension ) {
212
  $theme_options = apply_filters( 'astra_export_data', $theme_options );
213
  nocache_headers();
214
  header( 'Content-Type: application/json; charset=utf-8' );
215
+ header( 'Content-Disposition: attachment; filename=astra-settings-export-' . gmdate( 'm-d-Y' ) . '.json' );
216
  header( 'Expires: 0' );
217
  echo wp_json_encode( $theme_options );
218
  // Start the download.
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: brainstormforce
3
  Donate link: https://www.brainstormforce.com/payment/
4
  Requires at least: 4.4
5
  Tags: astra addons export, import, settings, customizer settings, theme settings, theme options
6
- Stable tag: 1.0.1
7
  Requires PHP: 5.4
8
- Tested up to: 5.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -42,6 +42,9 @@ Yes! Astra Pro settings that are available with customizer can be imported/expor
42
 
43
  == Changelog ==
44
 
 
 
 
45
  = 1.0.1 =
46
  - Fix: PHP Notice in the Import functionality.
47
 
3
  Donate link: https://www.brainstormforce.com/payment/
4
  Requires at least: 4.4
5
  Tags: astra addons export, import, settings, customizer settings, theme settings, theme options
6
+ Stable tag: 1.0.2
7
  Requires PHP: 5.4
8
+ Tested up to: 5.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
42
 
43
  == Changelog ==
44
 
45
+ = 1.0.2 =
46
+ - Fix: Security Update.
47
+
48
  = 1.0.1 =
49
  - Fix: PHP Notice in the Import functionality.
50