Version Description
- Fix: PHP Notice in the Import functionality.
Download this release
Release Info
Developer | Nikschavan |
Plugin | Import / Export Customizer Settings |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
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.
|
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.
|
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.1
|
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.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 ) );
|
inc/classes/class-astra-import-export-loader.php
CHANGED
@@ -138,8 +138,8 @@ if ( ! class_exists( 'Astra_Import_Export_Loader' ) ) {
|
|
138 |
if ( empty( $filename ) ) {
|
139 |
return;
|
140 |
}
|
141 |
-
|
142 |
-
$extension = end(
|
143 |
|
144 |
if ( 'json' !== $extension ) {
|
145 |
wp_die( esc_html__( 'Please upload a valid .json file', 'astra-import-export' ) );
|
138 |
if ( empty( $filename ) ) {
|
139 |
return;
|
140 |
}
|
141 |
+
$file_ext = explode( '.', $filename );
|
142 |
+
$extension = end( $file_ext );
|
143 |
|
144 |
if ( 'json' !== $extension ) {
|
145 |
wp_die( esc_html__( 'Please upload a valid .json file', 'astra-import-export' ) );
|
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.
|
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,5 +42,8 @@ Yes! Astra Pro settings that are available with customizer can be imported/expor
|
|
42 |
|
43 |
== Changelog ==
|
44 |
|
|
|
|
|
|
|
45 |
= 1.0.0 =
|
46 |
-
- Initial release
|
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 |
|
43 |
== Changelog ==
|
44 |
|
45 |
+
= 1.0.1 =
|
46 |
+
- Fix: PHP Notice in the Import functionality.
|
47 |
+
|
48 |
= 1.0.0 =
|
49 |
+
- Initial release
|