Skip to content

Commit

Permalink
Fix: serialized term meta
Browse files Browse the repository at this point in the history
  • Loading branch information
zaerl committed Dec 18, 2024
1 parent f10f145 commit 41a2007
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ public function import_term_meta( $meta_item, $term_id ) {
$term_meta_id = add_term_meta( $meta_item['term_id'], wp_slash( $meta_item['meta_key'] ), wp_slash_strings_only( $value ) );

do_action( 'wxr_importer_processed_term_meta', $term_meta_id, $meta_item, $meta_item['term_id'] );
$this->topological_sorter->map_entity( 'term_meta', $meta_item, $term_meta_id, $meta_item['term_id'] );
$this->topological_sorter->map_entity( 'term_meta', $meta_item, $meta_item['meta_key'] );
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public function test_serialized_postmeta_with_slashes() {
*
* @see https://github.com/WordPress/wordpress-importer/blob/master/phpunit/tests/term-meta.php
*/
public function _no_test_serialized_term_meta() {
public function test_serialized_term_meta() {
register_taxonomy( 'custom_taxonomy', array( 'post' ) );

$this->import_wxr_file( __DIR__ . '/wxr/test-serialized-term-meta.xml' );
Expand Down

0 comments on commit 41a2007

Please sign in to comment.