Version Description
Release Date - 13 December 2016
- Fixed issue with customizer options import
Download this release
Release Info
Developer | capuderg |
Plugin | One Click Demo Import |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.2
- assets/js/main.js +6 -1
- inc/OneClickDemoImport.php +1 -0
- languages/pt-ocdi.pot +12 -12
- one-click-demo-import.php +1 -1
- readme.txt +7 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +3 -3
assets/js/main.js
CHANGED
@@ -285,7 +285,12 @@ jQuery( function ( $ ) {
|
|
285 |
var newData = new FormData();
|
286 |
newData.append( 'action', 'ocdi_import_customizer_data' );
|
287 |
newData.append( 'security', ocdi.ajax_nonce );
|
288 |
-
|
|
|
|
|
|
|
|
|
|
|
289 |
ajaxCall( newData );
|
290 |
}
|
291 |
else if ( 'undefined' !== typeof response.status && 'afterAllImportAJAX' === response.status ) {
|
285 |
var newData = new FormData();
|
286 |
newData.append( 'action', 'ocdi_import_customizer_data' );
|
287 |
newData.append( 'security', ocdi.ajax_nonce );
|
288 |
+
|
289 |
+
// Set the wp_customize=on only if the plugin filter is set to true.
|
290 |
+
if ( true === ocdi.wp_customize_on ) {
|
291 |
+
newData.append( 'wp_customize', 'on' );
|
292 |
+
}
|
293 |
+
|
294 |
ajaxCall( newData );
|
295 |
}
|
296 |
else if ( 'undefined' !== typeof response.status && 'afterAllImportAJAX' === response.status ) {
|
inc/OneClickDemoImport.php
CHANGED
@@ -176,6 +176,7 @@ class OneClickDemoImport {
|
|
176 |
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
177 |
'ajax_nonce' => wp_create_nonce( 'ocdi-ajax-verification' ),
|
178 |
'import_files' => $this->import_files,
|
|
|
179 |
'import_popup' => apply_filters( 'pt-ocdi/enable_grid_layout_import_popup_confirmation', true ),
|
180 |
'theme_screenshot' => $theme->get_screenshot(),
|
181 |
'texts' => array(
|
176 |
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
177 |
'ajax_nonce' => wp_create_nonce( 'ocdi-ajax-verification' ),
|
178 |
'import_files' => $this->import_files,
|
179 |
+
'wp_customize_on' => apply_filters( 'pt-ocdi/enable_wp_customize_save_hooks', false ),
|
180 |
'import_popup' => apply_filters( 'pt-ocdi/enable_grid_layout_import_popup_confirmation', true ),
|
181 |
'theme_screenshot' => $theme->get_screenshot(),
|
182 |
'texts' => array(
|
languages/pt-ocdi.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the GPL 2.0.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: One Click Demo Import 2.0.
|
6 |
"Report-Msgid-Bugs-To: http://support.proteusthemes.com/\n"
|
7 |
"POT-Creation-Date: 2016-05-14 09:53:17+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
@@ -159,43 +159,43 @@ msgstr ""
|
|
159 |
msgid "New AJAX call!"
|
160 |
msgstr ""
|
161 |
|
162 |
-
#: inc/OneClickDemoImport.php:
|
163 |
msgid "No preview image defined for this import."
|
164 |
msgstr ""
|
165 |
|
166 |
-
#: inc/OneClickDemoImport.php:
|
167 |
msgid "Are you sure?"
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: inc/OneClickDemoImport.php:
|
171 |
msgid "Cancel"
|
172 |
msgstr ""
|
173 |
|
174 |
-
#: inc/OneClickDemoImport.php:
|
175 |
msgid "Yes, import!"
|
176 |
msgstr ""
|
177 |
|
178 |
-
#: inc/OneClickDemoImport.php:
|
179 |
msgid "Selected demo import:"
|
180 |
msgstr ""
|
181 |
|
182 |
-
#: inc/OneClickDemoImport.php:
|
183 |
msgid "Manually uploaded files"
|
184 |
msgstr ""
|
185 |
|
186 |
-
#: inc/OneClickDemoImport.php:
|
187 |
msgid "Downloaded files"
|
188 |
msgstr ""
|
189 |
|
190 |
-
#: inc/OneClickDemoImport.php:
|
191 |
msgid "The import files for: %s were successfully downloaded!"
|
192 |
msgstr ""
|
193 |
|
194 |
-
#: inc/OneClickDemoImport.php:
|
195 |
msgid "No import files specified!"
|
196 |
msgstr ""
|
197 |
|
198 |
-
#: inc/OneClickDemoImport.php:
|
199 |
msgid ""
|
200 |
"%1$s%3$sThat's it, all done!%4$s%2$sThe demo import has finished. Please "
|
201 |
"check your page and make sure that everything has imported correctly. If it "
|
@@ -203,7 +203,7 @@ msgid ""
|
|
203 |
"it has done its job.%5$s"
|
204 |
msgstr ""
|
205 |
|
206 |
-
#: inc/OneClickDemoImport.php:
|
207 |
msgid ""
|
208 |
"%1$sThe demo import has finished, but there were some import "
|
209 |
"errors.%2$sMore details about the errors can be found in this %3$s%5$slog "
|
2 |
# This file is distributed under the GPL 2.0.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: One Click Demo Import 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: http://support.proteusthemes.com/\n"
|
7 |
"POT-Creation-Date: 2016-05-14 09:53:17+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
159 |
msgid "New AJAX call!"
|
160 |
msgstr ""
|
161 |
|
162 |
+
#: inc/OneClickDemoImport.php:183
|
163 |
msgid "No preview image defined for this import."
|
164 |
msgstr ""
|
165 |
|
166 |
+
#: inc/OneClickDemoImport.php:184
|
167 |
msgid "Are you sure?"
|
168 |
msgstr ""
|
169 |
|
170 |
+
#: inc/OneClickDemoImport.php:185
|
171 |
msgid "Cancel"
|
172 |
msgstr ""
|
173 |
|
174 |
+
#: inc/OneClickDemoImport.php:186
|
175 |
msgid "Yes, import!"
|
176 |
msgstr ""
|
177 |
|
178 |
+
#: inc/OneClickDemoImport.php:187
|
179 |
msgid "Selected demo import:"
|
180 |
msgstr ""
|
181 |
|
182 |
+
#: inc/OneClickDemoImport.php:233
|
183 |
msgid "Manually uploaded files"
|
184 |
msgstr ""
|
185 |
|
186 |
+
#: inc/OneClickDemoImport.php:246 inc/OneClickDemoImport.php:257
|
187 |
msgid "Downloaded files"
|
188 |
msgstr ""
|
189 |
|
190 |
+
#: inc/OneClickDemoImport.php:253
|
191 |
msgid "The import files for: %s were successfully downloaded!"
|
192 |
msgstr ""
|
193 |
|
194 |
+
#: inc/OneClickDemoImport.php:262
|
195 |
msgid "No import files specified!"
|
196 |
msgstr ""
|
197 |
|
198 |
+
#: inc/OneClickDemoImport.php:379
|
199 |
msgid ""
|
200 |
"%1$s%3$sThat's it, all done!%4$s%2$sThe demo import has finished. Please "
|
201 |
"check your page and make sure that everything has imported correctly. If it "
|
203 |
"it has done its job.%5$s"
|
204 |
msgstr ""
|
205 |
|
206 |
+
#: inc/OneClickDemoImport.php:390
|
207 |
msgid ""
|
208 |
"%1$sThe demo import has finished, but there were some import "
|
209 |
"errors.%2$sMore details about the errors can be found in this %3$s%5$slog "
|
one-click-demo-import.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: One Click Demo Import
|
5 |
Plugin URI: https://wordpress.org/plugins/one-click-demo-import/
|
6 |
Description: Import your content, widgets and theme settings with one click. Theme authors! Enable simple demo import for your theme demo data.
|
7 |
-
Version: 2.0.
|
8 |
Author: ProteusThemes
|
9 |
Author URI: http://www.proteusthemes.com
|
10 |
License: GPL3
|
4 |
Plugin Name: One Click Demo Import
|
5 |
Plugin URI: https://wordpress.org/plugins/one-click-demo-import/
|
6 |
Description: Import your content, widgets and theme settings with one click. Theme authors! Enable simple demo import for your theme demo data.
|
7 |
+
Version: 2.0.2
|
8 |
Author: ProteusThemes
|
9 |
Author URI: http://www.proteusthemes.com
|
10 |
License: GPL3
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: capuderg, cyman, Prelc
|
|
3 |
Tags: import, content, demo, data, widgets, settings
|
4 |
Requires at least: 4.0.0
|
5 |
Tested up to: 4.7
|
6 |
-
Stable tag: 2.0.
|
7 |
License: GPLv3 or later
|
8 |
|
9 |
Import your demo content, widgets and theme settings with one click. Theme authors! Enable simple demo import for your theme demo data.
|
@@ -303,6 +303,12 @@ Please visit this [docs page](https://github.com/proteusthemes/one-click-demo-im
|
|
303 |
|
304 |
== Changelog ==
|
305 |
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
= 2.0.1 =
|
307 |
|
308 |
*Release Date - 12 December 2016*
|
3 |
Tags: import, content, demo, data, widgets, settings
|
4 |
Requires at least: 4.0.0
|
5 |
Tested up to: 4.7
|
6 |
+
Stable tag: 2.0.2
|
7 |
License: GPLv3 or later
|
8 |
|
9 |
Import your demo content, widgets and theme settings with one click. Theme authors! Enable simple demo import for your theme demo data.
|
303 |
|
304 |
== Changelog ==
|
305 |
|
306 |
+
= 2.0.2 =
|
307 |
+
|
308 |
+
*Release Date - 13 December 2016*
|
309 |
+
|
310 |
+
* Fixed issue with customizer options import
|
311 |
+
|
312 |
= 2.0.1 =
|
313 |
|
314 |
*Release Date - 12 December 2016*
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit9f19bd79f9d433b9a67432d43819d4ce::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitf461fddf267e355f502ed7ffd11cec36
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION');
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit9f19bd79f9d433b9a67432d43819d4ce
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit9f19bd79f9d433b9a67432d43819d4ce', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit9f19bd79f9d433b9a67432d43819d4ce', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION');
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit9f19bd79f9d433b9a67432d43819d4ce::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'P' =>
|
@@ -31,8 +31,8 @@ class ComposerStaticInitf461fddf267e355f502ed7ffd11cec36
|
|
31 |
public static function getInitializer(ClassLoader $loader)
|
32 |
{
|
33 |
return \Closure::bind(function () use ($loader) {
|
34 |
-
$loader->prefixLengthsPsr4 =
|
35 |
-
$loader->prefixDirsPsr4 =
|
36 |
|
37 |
}, null, ClassLoader::class);
|
38 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit9f19bd79f9d433b9a67432d43819d4ce
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'P' =>
|
31 |
public static function getInitializer(ClassLoader $loader)
|
32 |
{
|
33 |
return \Closure::bind(function () use ($loader) {
|
34 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit9f19bd79f9d433b9a67432d43819d4ce::$prefixLengthsPsr4;
|
35 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit9f19bd79f9d433b9a67432d43819d4ce::$prefixDirsPsr4;
|
36 |
|
37 |
}, null, ClassLoader::class);
|
38 |
}
|