updated plugin GP Premium version 2.1.1

This commit is contained in:
2021-12-20 13:41:59 +00:00
committed by Gitium
parent 132b46b78f
commit d5dbb2bde7
86 changed files with 2903 additions and 455 deletions

View File

@ -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' ),