Skip to content

Commit

Permalink
More wp_slash for starter content - see #17
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Olaru committed Mar 5, 2020
1 parent 3520d88 commit c4221d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions admin/class-pixelgrade_assistant-starter_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -714,12 +714,12 @@ private function import_taxonomy( $demo_key, $base_url, $args ) {
foreach ( $response_data['data']['terms'] as $i => $term ) {

$term_args = array(
'description' => $term['description'],
'description' => wp_slash( $term['description'] ),
'slug' => $term['slug'],
);

$new_id = wp_insert_term(
$term['name'], // the term
wp_slash( $term['name'] ), // the term
$term['taxonomy'], // the taxonomy
$term_args
);
Expand All @@ -744,9 +744,9 @@ private function import_taxonomy( $demo_key, $base_url, $args ) {
$value = $starter_content[ $demo_key ]['media']['ignored'][ $value ];
}

update_term_meta( $new_id['term_id'], $key, $value );
update_term_meta( $new_id['term_id'], wp_slash( $key ), $value );
}
update_term_meta( $new_id['term_id'], 'imported_with_pixassist', true );
update_term_meta( $new_id['term_id'], wp_slash( 'imported_with_pixassist' ), true );
}
}

Expand Down

0 comments on commit c4221d4

Please sign in to comment.