Skip to content

Commit b810a3e

Browse files
authored
Update Wordpress.php
1 parent d3ed4fc commit b810a3e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Model/Import/Wordpress.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public function execute()
4747
while ($data = mysqli_fetch_assoc($result)) {
4848
/* Prepare category data */
4949
foreach (['title', 'identifier'] as $key) {
50-
$data[$key] = utf8_encode($data[$key]);
51-
// $data[$key] = mb_convert_encoding($data[$key], 'HTML-ENTITIES', 'UTF-8');
50+
/*$data[$key] = utf8_encode($data[$key]);*/
51+
$data[$key] = mb_convert_encoding($data[$key], 'HTML-ENTITIES', 'UTF-8');
5252
}
5353

5454
$data['store_ids'] = [$this->getStoreId()];
@@ -123,8 +123,8 @@ public function execute()
123123
while ($data = mysqli_fetch_assoc($result)) {
124124
/* Prepare tag data */
125125
foreach (['title', 'identifier'] as $key) {
126-
$data[$key] = utf8_encode($data[$key]);
127-
// $data[$key] = mb_convert_encoding($data[$key], 'HTML-ENTITIES', 'UTF-8');
126+
/*$data[$key] = utf8_encode($data[$key]);*/
127+
$data[$key] = mb_convert_encoding($data[$key], 'HTML-ENTITIES', 'UTF-8');
128128
}
129129

130130
if ($data['title']{0} == '?') {
@@ -217,8 +217,8 @@ public function execute()
217217

218218
/* Prepare post data */
219219
foreach (['post_title', 'post_name', 'post_content'] as $key) {
220-
$data[$key] = utf8_encode($data[$key]);
221-
// $data[$key] = mb_convert_encoding($data[$key], 'HTML-ENTITIES', 'UTF-8');
220+
/*$data[$key] = utf8_encode($data[$key]);*/
221+
$data[$key] = mb_convert_encoding($data[$key], 'HTML-ENTITIES', 'UTF-8');
222222
}
223223

224224
$creationTime = strtotime($data['post_date_gmt']);

0 commit comments

Comments
 (0)