Version Description
Release Date - 5 February 2017
- Add ProteusThemes branding notice after successful import,
- Fix after import error reporting (duplicate errors were shown),
- Fix some undefined variables in the plugin, causing PHP notices.
Download this release
Release Info
Developer | capuderg |
Plugin | One Click Demo Import |
Version | 2.2.0 |
Comparing to | |
See all releases |
Code changes from version 2.1.0 to 2.2.0
- inc/Helpers.php +8 -4
- inc/OneClickDemoImport.php +31 -4
- languages/pt-ocdi.pot +17 -5
- one-click-demo-import.php +1 -1
- readme.txt +26 -2
- vendor/autoload.php +1 -1
- vendor/composer/ClassLoader.php +31 -5
- vendor/composer/autoload_real.php +5 -5
- vendor/composer/autoload_static.php +3 -3
- vendor/composer/installed.json +7 -7
- vendor/proteusthemes/wp-content-importer-v2/src/WXRImporter.php +2 -2
inc/Helpers.php
CHANGED
@@ -533,9 +533,13 @@ class Helpers {
|
|
533 |
* @param array $selected_import_files array of selected import files.
|
534 |
*/
|
535 |
public static function import_file_info( $selected_import_files ) {
|
536 |
-
$redux_file_string =
|
537 |
-
|
538 |
-
|
|
|
|
|
|
|
|
|
539 |
|
540 |
return PHP_EOL .
|
541 |
sprintf(
|
@@ -549,7 +553,7 @@ class Helpers {
|
|
549 |
$selected_import_files['content'],
|
550 |
empty( $selected_import_files['widgets'] ) ? esc_html__( 'not defined!', 'pt-ocdi' ) : $selected_import_files['widgets'],
|
551 |
empty( $selected_import_files['customizer'] ) ? esc_html__( 'not defined!', 'pt-ocdi' ) : $selected_import_files['customizer'],
|
552 |
-
empty( $
|
553 |
);
|
554 |
}
|
555 |
|
533 |
* @param array $selected_import_files array of selected import files.
|
534 |
*/
|
535 |
public static function import_file_info( $selected_import_files ) {
|
536 |
+
$redux_file_string = '';
|
537 |
+
|
538 |
+
if ( ! empty( $selected_import_files['redux'] ) ) {
|
539 |
+
$redux_file_string = array_reduce( $selected_import_files['redux'], function( $string, $item ) {
|
540 |
+
return sprintf( '%1$s%2$s -> %3$s %4$s', $string, $item['option_name'], $item['file_path'], PHP_EOL );
|
541 |
+
}, '' );
|
542 |
+
}
|
543 |
|
544 |
return PHP_EOL .
|
545 |
sprintf(
|
553 |
$selected_import_files['content'],
|
554 |
empty( $selected_import_files['widgets'] ) ? esc_html__( 'not defined!', 'pt-ocdi' ) : $selected_import_files['widgets'],
|
555 |
empty( $selected_import_files['customizer'] ) ? esc_html__( 'not defined!', 'pt-ocdi' ) : $selected_import_files['customizer'],
|
556 |
+
empty( $redux_file_string ) ? esc_html__( 'not defined!', 'pt-ocdi' ) : $redux_file_string
|
557 |
);
|
558 |
}
|
559 |
|
inc/OneClickDemoImport.php
CHANGED
@@ -376,7 +376,25 @@ class OneClickDemoImport {
|
|
376 |
|
377 |
// Display final messages (success or error messages).
|
378 |
if ( empty( $this->frontend_error_messages ) ) {
|
379 |
-
$response['message'] =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
380 |
__( '%1$s%3$sThat\'s it, all done!%4$s%2$sThe demo import has finished. Please check your page and make sure that everything has imported correctly. If it did, you can deactivate the %3$sOne Click Demo Import%4$s plugin, because it has done its job.%5$s', 'pt-ocdi' ),
|
381 |
'<div class="notice notice-success"><p>',
|
382 |
'<br>',
|
@@ -455,8 +473,17 @@ class OneClickDemoImport {
|
|
455 |
* @param string $additional_value The additional value that will be appended to the existing frontend_error_messages.
|
456 |
*/
|
457 |
public function append_to_frontend_error_messages( $text ) {
|
458 |
-
|
459 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
460 |
}
|
461 |
}
|
462 |
|
@@ -471,7 +498,7 @@ class OneClickDemoImport {
|
|
471 |
|
472 |
if ( ! empty( $this->frontend_error_messages ) ) {
|
473 |
foreach ( $this->frontend_error_messages as $line ) {
|
474 |
-
$output .=
|
475 |
$output .= '<br>';
|
476 |
}
|
477 |
}
|
376 |
|
377 |
// Display final messages (success or error messages).
|
378 |
if ( empty( $this->frontend_error_messages ) ) {
|
379 |
+
$response['message'] = '';
|
380 |
+
|
381 |
+
if ( ! apply_filters( 'pt-ocdi/disable_pt_branding', false ) ) {
|
382 |
+
$twitter_status = esc_html__( 'Just used One Click Demo Import plugin and it was awesome! Thanks @ProteusThemes! https://www.proteusthemes.com/', 'pt-ocdi' );
|
383 |
+
|
384 |
+
$response['message'] .= sprintf(
|
385 |
+
__( '%1$s%6$sWasn\'t this a great One Click Demo Import experience?%7$s Created and maintained by %3$sProteusThemes%4$s. %2$s%5$sClick to Tweet!%4$s%8$s', 'pt-ocdi' ),
|
386 |
+
'<div class="notice notice-info"><p>',
|
387 |
+
'<br>',
|
388 |
+
'<strong><a href="https://www.proteusthemes.com/" target="_blank">',
|
389 |
+
'</a></strong>',
|
390 |
+
'<strong><a href="' . add_query_arg( 'status', urlencode( $twitter_status ), 'http://twitter.com/home' ) . '" target="_blank">',
|
391 |
+
'<strong>',
|
392 |
+
'</strong>',
|
393 |
+
'</p></div>'
|
394 |
+
);
|
395 |
+
}
|
396 |
+
|
397 |
+
$response['message'] .= sprintf(
|
398 |
__( '%1$s%3$sThat\'s it, all done!%4$s%2$sThe demo import has finished. Please check your page and make sure that everything has imported correctly. If it did, you can deactivate the %3$sOne Click Demo Import%4$s plugin, because it has done its job.%5$s', 'pt-ocdi' ),
|
399 |
'<div class="notice notice-success"><p>',
|
400 |
'<br>',
|
473 |
* @param string $additional_value The additional value that will be appended to the existing frontend_error_messages.
|
474 |
*/
|
475 |
public function append_to_frontend_error_messages( $text ) {
|
476 |
+
$lines = array();
|
477 |
+
|
478 |
+
if ( ! empty( $text ) ) {
|
479 |
+
$text = str_replace( '<br>', PHP_EOL, $text );
|
480 |
+
$lines = explode( PHP_EOL, $text );
|
481 |
+
}
|
482 |
+
|
483 |
+
foreach ( $lines as $line ) {
|
484 |
+
if ( ! empty( $line ) && ! in_array( $line , $this->frontend_error_messages ) ) {
|
485 |
+
$this->frontend_error_messages[] = $line;
|
486 |
+
}
|
487 |
}
|
488 |
}
|
489 |
|
498 |
|
499 |
if ( ! empty( $this->frontend_error_messages ) ) {
|
500 |
foreach ( $this->frontend_error_messages as $line ) {
|
501 |
+
$output .= esc_html( $line );
|
502 |
$output .= '<br>';
|
503 |
}
|
504 |
}
|
languages/pt-ocdi.pot
CHANGED
@@ -141,17 +141,17 @@ msgstr ""
|
|
141 |
msgid "The import files were successfully uploaded!"
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: inc/Helpers.php:
|
145 |
msgid "Initial max execution time = %s"
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: inc/Helpers.php:
|
149 |
msgid ""
|
150 |
"Files info:%1$sSite URL = %2$s%1$sData file = %3$s%1$sWidget file = "
|
151 |
"%4$s%1$sCustomizer file = %5$s%1$sRedux files:%1$s%6$s"
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: inc/Helpers.php:
|
155 |
msgid "not defined!"
|
156 |
msgstr ""
|
157 |
|
@@ -195,7 +195,19 @@ msgstr ""
|
|
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 +215,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 "
|
141 |
msgid "The import files were successfully uploaded!"
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: inc/Helpers.php:546
|
145 |
msgid "Initial max execution time = %s"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: inc/Helpers.php:550
|
149 |
msgid ""
|
150 |
"Files info:%1$sSite URL = %2$s%1$sData file = %3$s%1$sWidget file = "
|
151 |
"%4$s%1$sCustomizer file = %5$s%1$sRedux files:%1$s%6$s"
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: inc/Helpers.php:554 inc/Helpers.php:555 inc/Helpers.php:556
|
155 |
msgid "not defined!"
|
156 |
msgstr ""
|
157 |
|
195 |
msgid "No import files specified!"
|
196 |
msgstr ""
|
197 |
|
198 |
+
#: inc/OneClickDemoImport.php:382
|
199 |
+
msgid ""
|
200 |
+
"Just used One Click Demo Import plugin and it was awesome! Thanks "
|
201 |
+
"@ProteusThemes! https://www.proteusthemes.com/"
|
202 |
+
msgstr ""
|
203 |
+
|
204 |
+
#: inc/OneClickDemoImport.php:385
|
205 |
+
msgid ""
|
206 |
+
"%1$s%6$sWasn't this a great One Click Demo Import experience?%7$s Created "
|
207 |
+
"and maintained by %3$sProteusThemes%4$s. %2$s%5$sClick to Tweet!%4$s%8$s"
|
208 |
+
msgstr ""
|
209 |
+
|
210 |
+
#: inc/OneClickDemoImport.php:398
|
211 |
msgid ""
|
212 |
"%1$s%3$sThat's it, all done!%4$s%2$sThe demo import has finished. Please "
|
213 |
"check your page and make sure that everything has imported correctly. If it "
|
215 |
"it has done its job.%5$s"
|
216 |
msgstr ""
|
217 |
|
218 |
+
#: inc/OneClickDemoImport.php:409
|
219 |
msgid ""
|
220 |
"%1$sThe demo import has finished, but there were some import "
|
221 |
"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.
|
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.2.0
|
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.
|
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.
|
@@ -13,11 +13,18 @@ Import your demo content, widgets and theme settings with one click. Theme autho
|
|
13 |
The best feature of this plugin is, that theme authors can define import files in their themes and so all you (the user of the theme) have to do is click on the "Import Demo Data" button.
|
14 |
|
15 |
> **Are you a theme author?**
|
|
|
16 |
> Setup One Click Demo Imports for your theme and your users will thank you for it!
|
17 |
>
|
18 |
> [Follow this easy guide on how to setup this plugin for your themes!](http://proteusthemes.github.io/one-click-demo-import/)
|
19 |
>
|
20 |
-
> Also sign up to the newsletter, so we can inform you about any updates, changes or improvements.
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
This plugin will create a submenu page under Appearance with the title **Import demo data**.
|
23 |
|
@@ -302,6 +309,15 @@ function my_theme_ocdi_confirmation_dialog_options ( $options ) {
|
|
302 |
add_filter( 'pt-ocdi/confirmation_dialog_options', 'my_theme_ocdi_confirmation_dialog_options', 10, 1 );
|
303 |
`
|
304 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
305 |
= I can't activate the plugin, because of a fatal error, what can I do? =
|
306 |
|
307 |
*Update: since version 1.2.0, there is now a admin error notice, stating that the minimal PHP version required for this plugin is 5.3.2.*
|
@@ -324,6 +340,14 @@ Please visit this [docs page](https://github.com/proteusthemes/one-click-demo-im
|
|
324 |
|
325 |
== Changelog ==
|
326 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
327 |
= 2.1.0 =
|
328 |
|
329 |
*Release Date - 8 January 2017*
|
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.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.
|
13 |
The best feature of this plugin is, that theme authors can define import files in their themes and so all you (the user of the theme) have to do is click on the "Import Demo Data" button.
|
14 |
|
15 |
> **Are you a theme author?**
|
16 |
+
>
|
17 |
> Setup One Click Demo Imports for your theme and your users will thank you for it!
|
18 |
>
|
19 |
> [Follow this easy guide on how to setup this plugin for your themes!](http://proteusthemes.github.io/one-click-demo-import/)
|
20 |
>
|
21 |
+
> Also [sign up to the newsletter](http://proteusthemes.github.io/one-click-demo-import/#ocdi-newsletter-signup), so we can inform you about any updates, changes or improvements.
|
22 |
+
|
23 |
+
> **Are you a theme user?**
|
24 |
+
>
|
25 |
+
> Contact the author of your theme and [let them know about this plugin](http://proteusthemes.github.io/one-click-demo-import/theme-users.html). Theme authors can make any theme compatible with this plugin in 15 minutes and make it much more user-friendly.
|
26 |
+
>
|
27 |
+
> "[Where can I find the contact of the theme author?](http://proteusthemes.github.io/one-click-demo-import/theme-users.html)"
|
28 |
|
29 |
This plugin will create a submenu page under Appearance with the title **Import demo data**.
|
30 |
|
309 |
add_filter( 'pt-ocdi/confirmation_dialog_options', 'my_theme_ocdi_confirmation_dialog_options', 10, 1 );
|
310 |
`
|
311 |
|
312 |
+
= How can I disable the ProteusThemes branding notice after successful demo import? =
|
313 |
+
|
314 |
+
You can disable the branding notice with a WP filter. All you need to do is add this bit of code to your theme:
|
315 |
+
|
316 |
+
`add_filter( 'pt-ocdi/disable_pt_branding', '__return_true' );`
|
317 |
+
|
318 |
+
and the notice will not be displayed.
|
319 |
+
|
320 |
+
|
321 |
= I can't activate the plugin, because of a fatal error, what can I do? =
|
322 |
|
323 |
*Update: since version 1.2.0, there is now a admin error notice, stating that the minimal PHP version required for this plugin is 5.3.2.*
|
340 |
|
341 |
== Changelog ==
|
342 |
|
343 |
+
= 2.2.0 =
|
344 |
+
|
345 |
+
*Release Date - 5 February 2017*
|
346 |
+
|
347 |
+
* Add ProteusThemes branding notice after successful import,
|
348 |
+
* Fix after import error reporting (duplicate errors were shown),
|
349 |
+
* Fix some undefined variables in the plugin, causing PHP notices.
|
350 |
+
|
351 |
= 2.1.0 =
|
352 |
|
353 |
*Release Date - 8 January 2017*
|
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 ComposerAutoloaderInit053e42852cc588fef1cd3496856ef339::getLoader();
|
vendor/composer/ClassLoader.php
CHANGED
@@ -55,6 +55,7 @@ class ClassLoader
|
|
55 |
private $classMap = array();
|
56 |
private $classMapAuthoritative = false;
|
57 |
private $missingClasses = array();
|
|
|
58 |
|
59 |
public function getPrefixes()
|
60 |
{
|
@@ -271,6 +272,26 @@ class ClassLoader
|
|
271 |
return $this->classMapAuthoritative;
|
272 |
}
|
273 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
274 |
/**
|
275 |
* Registers this instance as an autoloader.
|
276 |
*
|
@@ -313,11 +334,6 @@ class ClassLoader
|
|
313 |
*/
|
314 |
public function findFile($class)
|
315 |
{
|
316 |
-
// work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731
|
317 |
-
if ('\\' == $class[0]) {
|
318 |
-
$class = substr($class, 1);
|
319 |
-
}
|
320 |
-
|
321 |
// class map lookup
|
322 |
if (isset($this->classMap[$class])) {
|
323 |
return $this->classMap[$class];
|
@@ -325,6 +341,12 @@ class ClassLoader
|
|
325 |
if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
|
326 |
return false;
|
327 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
328 |
|
329 |
$file = $this->findFileWithExtension($class, '.php');
|
330 |
|
@@ -333,6 +355,10 @@ class ClassLoader
|
|
333 |
$file = $this->findFileWithExtension($class, '.hh');
|
334 |
}
|
335 |
|
|
|
|
|
|
|
|
|
336 |
if (false === $file) {
|
337 |
// Remember that this class does not exist.
|
338 |
$this->missingClasses[$class] = true;
|
55 |
private $classMap = array();
|
56 |
private $classMapAuthoritative = false;
|
57 |
private $missingClasses = array();
|
58 |
+
private $apcuPrefix;
|
59 |
|
60 |
public function getPrefixes()
|
61 |
{
|
272 |
return $this->classMapAuthoritative;
|
273 |
}
|
274 |
|
275 |
+
/**
|
276 |
+
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
|
277 |
+
*
|
278 |
+
* @param string|null $apcuPrefix
|
279 |
+
*/
|
280 |
+
public function setApcuPrefix($apcuPrefix)
|
281 |
+
{
|
282 |
+
$this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
|
283 |
+
}
|
284 |
+
|
285 |
+
/**
|
286 |
+
* The APCu prefix in use, or null if APCu caching is not enabled.
|
287 |
+
*
|
288 |
+
* @return string|null
|
289 |
+
*/
|
290 |
+
public function getApcuPrefix()
|
291 |
+
{
|
292 |
+
return $this->apcuPrefix;
|
293 |
+
}
|
294 |
+
|
295 |
/**
|
296 |
* Registers this instance as an autoloader.
|
297 |
*
|
334 |
*/
|
335 |
public function findFile($class)
|
336 |
{
|
|
|
|
|
|
|
|
|
|
|
337 |
// class map lookup
|
338 |
if (isset($this->classMap[$class])) {
|
339 |
return $this->classMap[$class];
|
341 |
if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
|
342 |
return false;
|
343 |
}
|
344 |
+
if (null !== $this->apcuPrefix) {
|
345 |
+
$file = apcu_fetch($this->apcuPrefix.$class, $hit);
|
346 |
+
if ($hit) {
|
347 |
+
return $file;
|
348 |
+
}
|
349 |
+
}
|
350 |
|
351 |
$file = $this->findFileWithExtension($class, '.php');
|
352 |
|
355 |
$file = $this->findFileWithExtension($class, '.hh');
|
356 |
}
|
357 |
|
358 |
+
if (null !== $this->apcuPrefix) {
|
359 |
+
apcu_add($this->apcuPrefix.$class, $file);
|
360 |
+
}
|
361 |
+
|
362 |
if (false === $file) {
|
363 |
// Remember that this class does not exist.
|
364 |
$this->missingClasses[$class] = true;
|
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 ComposerAutoloaderInit420861e363096c7f11a9cfa72301a53d
|
|
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 ComposerAutoloaderInit053e42852cc588fef1cd3496856ef339
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit053e42852cc588fef1cd3496856ef339', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit053e42852cc588fef1cd3496856ef339', 'loadClassLoader'));
|
25 |
|
26 |
+
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit053e42852cc588fef1cd3496856ef339::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 ComposerStaticInit420861e363096c7f11a9cfa72301a53d
|
|
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 ComposerStaticInit053e42852cc588fef1cd3496856ef339
|
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 = ComposerStaticInit053e42852cc588fef1cd3496856ef339::$prefixLengthsPsr4;
|
35 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit053e42852cc588fef1cd3496856ef339::$prefixDirsPsr4;
|
36 |
|
37 |
}, null, ClassLoader::class);
|
38 |
}
|
vendor/composer/installed.json
CHANGED
@@ -1,20 +1,20 @@
|
|
1 |
[
|
2 |
{
|
3 |
"name": "proteusthemes/wp-content-importer-v2",
|
4 |
-
"version": "v0.4.
|
5 |
-
"version_normalized": "0.4.
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
"url": "https://github.com/proteusthemes/WordPress-Importer.git",
|
9 |
-
"reference": "
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
-
"url": "https://api.github.com/repos/proteusthemes/WordPress-Importer/zipball/
|
14 |
-
"reference": "
|
15 |
"shasum": ""
|
16 |
},
|
17 |
-
"time": "2017-
|
18 |
"type": "library",
|
19 |
"installation-source": "source",
|
20 |
"autoload": {
|
@@ -41,7 +41,7 @@
|
|
41 |
"wp"
|
42 |
],
|
43 |
"support": {
|
44 |
-
"source": "https://github.com/proteusthemes/WordPress-Importer/tree/v0.4.
|
45 |
}
|
46 |
}
|
47 |
]
|
1 |
[
|
2 |
{
|
3 |
"name": "proteusthemes/wp-content-importer-v2",
|
4 |
+
"version": "v0.4.3",
|
5 |
+
"version_normalized": "0.4.3.0",
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
"url": "https://github.com/proteusthemes/WordPress-Importer.git",
|
9 |
+
"reference": "12dec5c810950f7d58d5a11dd1420a57830a0b1f"
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
+
"url": "https://api.github.com/repos/proteusthemes/WordPress-Importer/zipball/12dec5c810950f7d58d5a11dd1420a57830a0b1f",
|
14 |
+
"reference": "12dec5c810950f7d58d5a11dd1420a57830a0b1f",
|
15 |
"shasum": ""
|
16 |
},
|
17 |
+
"time": "2017-02-05T08:20:49+00:00",
|
18 |
"type": "library",
|
19 |
"installation-source": "source",
|
20 |
"autoload": {
|
41 |
"wp"
|
42 |
],
|
43 |
"support": {
|
44 |
+
"source": "https://github.com/proteusthemes/WordPress-Importer/tree/v0.4.3"
|
45 |
}
|
46 |
}
|
47 |
]
|
vendor/proteusthemes/wp-content-importer-v2/src/WXRImporter.php
CHANGED
@@ -1019,7 +1019,7 @@ class WXRImporter extends \WP_Importer {
|
|
1019 |
|
1020 |
default:
|
1021 |
// associated object is missing or not imported yet, we'll retry later
|
1022 |
-
$this->missing_menu_items[] = $
|
1023 |
$this->logger->debug( 'Unknown menu item type' );
|
1024 |
break;
|
1025 |
}
|
@@ -1322,7 +1322,7 @@ class WXRImporter extends \WP_Importer {
|
|
1322 |
if ( $post_exists ) {
|
1323 |
$existing = $this->comment_exists( $comment );
|
1324 |
if ( $existing ) {
|
1325 |
-
$this->mapping['comment'][ $original_id ] = $
|
1326 |
continue;
|
1327 |
}
|
1328 |
}
|
1019 |
|
1020 |
default:
|
1021 |
// associated object is missing or not imported yet, we'll retry later
|
1022 |
+
$this->missing_menu_items[] = $data;
|
1023 |
$this->logger->debug( 'Unknown menu item type' );
|
1024 |
break;
|
1025 |
}
|
1322 |
if ( $post_exists ) {
|
1323 |
$existing = $this->comment_exists( $comment );
|
1324 |
if ( $existing ) {
|
1325 |
+
$this->mapping['comment'][ $original_id ] = $existing;
|
1326 |
continue;
|
1327 |
}
|
1328 |
}
|