Version Description
Release Date - 12 December 2016
- Fixed issue with some browsers (Safari and IE) not supporting some FormData methods.
Download this release
Release Info
Developer | capuderg |
Plugin | One Click Demo Import |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.0 to 2.0.1
- assets/js/main.js +11 -6
- languages/pt-ocdi.pot +1 -1
- 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
@@ -281,14 +281,19 @@ jQuery( function ( $ ) {
|
|
281 |
ajaxCall( data );
|
282 |
}
|
283 |
else if ( 'undefined' !== typeof response.status && 'customizerAJAX' === response.status ) {
|
284 |
-
data.set
|
285 |
-
|
286 |
-
|
|
|
|
|
|
|
287 |
}
|
288 |
else if ( 'undefined' !== typeof response.status && 'afterAllImportAJAX' === response.status ) {
|
289 |
-
data.set
|
290 |
-
|
291 |
-
|
|
|
|
|
292 |
}
|
293 |
else if ( 'undefined' !== typeof response.message ) {
|
294 |
$( '.js-ocdi-ajax-response' ).append( '<p>' + response.message + '</p>' );
|
281 |
ajaxCall( data );
|
282 |
}
|
283 |
else if ( 'undefined' !== typeof response.status && 'customizerAJAX' === response.status ) {
|
284 |
+
// Fix for data.set and data.delete, which they are not supported in some browsers.
|
285 |
+
var newData = new FormData();
|
286 |
+
newData.append( 'action', 'ocdi_import_customizer_data' );
|
287 |
+
newData.append( 'security', ocdi.ajax_nonce );
|
288 |
+
newData.append( 'wp_customize', 'on' );
|
289 |
+
ajaxCall( newData );
|
290 |
}
|
291 |
else if ( 'undefined' !== typeof response.status && 'afterAllImportAJAX' === response.status ) {
|
292 |
+
// Fix for data.set and data.delete, which they are not supported in some browsers.
|
293 |
+
var newData = new FormData();
|
294 |
+
newData.append( 'action', 'ocdi_after_import_data' );
|
295 |
+
newData.append( 'security', ocdi.ajax_nonce );
|
296 |
+
ajaxCall( newData );
|
297 |
}
|
298 |
else if ( 'undefined' !== typeof response.message ) {
|
299 |
$( '.js-ocdi-ajax-response' ).append( '<p>' + response.message + '</p>' );
|
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"
|
2 |
# This file is distributed under the GPL 2.0.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: One Click Demo Import 2.0.1\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"
|
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.1
|
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.0 =
|
307 |
|
308 |
*Release Date - 10 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.1
|
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.1 =
|
307 |
+
|
308 |
+
*Release Date - 12 December 2016*
|
309 |
+
|
310 |
+
* Fixed issue with some browsers (Safari and IE) not supporting some FormData methods.
|
311 |
+
|
312 |
= 2.0.0 =
|
313 |
|
314 |
*Release Date - 10 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 ComposerAutoloaderInitf461fddf267e355f502ed7ffd11cec36::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 ComposerAutoloaderInit5e05a8e52ae52aaddbd9f3cfe3ad95a2
|
|
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 ComposerAutoloaderInitf461fddf267e355f502ed7ffd11cec36
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInitf461fddf267e355f502ed7ffd11cec36', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitf461fddf267e355f502ed7ffd11cec36', '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\ComposerStaticInitf461fddf267e355f502ed7ffd11cec36::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 ComposerStaticInit5e05a8e52ae52aaddbd9f3cfe3ad95a2
|
|
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 ComposerStaticInitf461fddf267e355f502ed7ffd11cec36
|
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 = ComposerStaticInitf461fddf267e355f502ed7ffd11cec36::$prefixLengthsPsr4;
|
35 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitf461fddf267e355f502ed7ffd11cec36::$prefixDirsPsr4;
|
36 |
|
37 |
}, null, ClassLoader::class);
|
38 |
}
|