updated plugin GP Premium
version 1.11.2
This commit is contained in:
@ -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'];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user