updated plugin GP Premium version 1.11.2

This commit is contained in:
2020-08-13 14:53:39 +00:00
committed by Gitium
parent 3f0f8d3ac9
commit 885bbdd113
151 changed files with 11329 additions and 6954 deletions

View File

@ -1,5 +1,17 @@
<?php
/**
* This file extends the Content Importer.
*
* @package GP Premium
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // No direct access, please.
}
/**
* Extend the Importer.
*/
class GeneratePress_Sites_Content_Importer extends GeneratePress\WPContentImporter2\WXRImporter {
/**
* Constructor method.
@ -20,7 +32,7 @@ class GeneratePress_Sites_Content_Importer extends GeneratePress\WPContentImport
*/
public function get_importer_data() {
return array(
'mapping' => $this->mapping
'mapping' => $this->mapping,
);
}
@ -30,7 +42,8 @@ class GeneratePress_Sites_Content_Importer extends GeneratePress\WPContentImport
* @param array $data with set variables.
*/
public function set_importer_data( $data ) {
//$this->mapping = empty( $data['mapping'] ) ? array() : $data['mapping'];
//$this->requires_remapping = empty( $data['requires_remapping'] ) ? array() : $data['requires_remapping'];
// phpcs:ignore -- Commented out code for now.
// $this->mapping = empty( $data['mapping'] ) ? array() : $data['mapping'];
// $this->requires_remapping = empty( $data['requires_remapping'] ) ? array() : $data['requires_remapping'];
}
}