Skip to content

Commit 9e74ec7

Browse files
committed
Sanitization removed before inserting multiple rows
1 parent 5d60d78 commit 9e74ec7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

inc/LDMigration/PostMeta/AssignmentMeta.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function migrate( int $post_id, string $post_type = 'sfwd-lessons' ) {
7373
}
7474

7575
try {
76-
QueryHelper::insert_multiple_rows( $wpdb->postmeta, $meta );
76+
QueryHelper::insert_multiple_rows( $wpdb->postmeta, $meta, false, false );
7777
} catch ( \Throwable $th ) {
7878
throw $th;
7979
}

inc/LDMigration/PostMeta/CourseMeta.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function migrate( int $post_id ) {
5252
$meta = $this->ld_to_tutor_meta_map( $migrate_able_meta );
5353
if ( is_array( $meta ) && count( $meta ) ) {
5454
try {
55-
QueryHelper::insert_multiple_rows( $wpdb->postmeta, $meta );
55+
QueryHelper::insert_multiple_rows( $wpdb->postmeta, $meta, false, false );
5656
} catch ( \Throwable $th ) {
5757
throw $th;
5858
}

inc/LDMigration/PostMeta/LessonMeta.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function migrate( int $post_id ) {
4747

4848
if ( is_array( $meta ) && count( $meta ) ) {
4949
try {
50-
QueryHelper::insert_multiple_rows( $wpdb->postmeta, $meta );
50+
QueryHelper::insert_multiple_rows( $wpdb->postmeta, $meta, false, false );
5151
} catch ( \Throwable $th ) {
5252
throw $th;
5353
}

inc/LDMigration/PostMeta/QuizMeta.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function migrate( int $post_id ) {
5656
}
5757

5858
try {
59-
QueryHelper::insert_multiple_rows( $wpdb->postmeta, $meta );
59+
QueryHelper::insert_multiple_rows( $wpdb->postmeta, $meta, false, false );
6060
} catch ( \Throwable $th ) {
6161
throw $th;
6262
}

0 commit comments

Comments
 (0)