updated plugin GP Premium
version 2.1.1
This commit is contained in:
@ -1926,7 +1926,13 @@ class WXRImporter extends \WP_Importer {
|
||||
|
||||
// Run the update
|
||||
$data['ID'] = $post_id;
|
||||
|
||||
if ( isset( $data['post_content'] ) ) {
|
||||
$data['post_content'] = wp_slash( $data['post_content'] );
|
||||
}
|
||||
|
||||
$result = wp_update_post( $data, true );
|
||||
|
||||
if ( is_wp_error( $result ) ) {
|
||||
$this->logger->warning( sprintf(
|
||||
__( 'Could not update "%s" (post #%d) with mapped data', 'wordpress-importer' ),
|
||||
|
Reference in New Issue
Block a user