Skip to content

Commit

Permalink
Fix taxonomy metadata: should use legacy formatting still
Browse files Browse the repository at this point in the history
  • Loading branch information
igorschoester committed Jul 1, 2024
1 parent 10e493a commit d8ef0d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/taxonomy/class-taxonomy.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function admin_enqueue_scripts() {
$repo = YoastSEO()->classes->get( Website_Information_Repository::class );
$term_information = $repo->get_term_site_information();
$term_information->set_term( get_term_by( 'id', $tag_id, $this::get_taxonomy() ) );
$script_data = array_merge_recursive( $term_information->get_site_information(), $script_data );
$script_data = array_merge_recursive( $term_information->get_legacy_site_information(), $script_data );

$asset_manager->localize_script( 'term-edit', 'wpseoScriptData', $script_data );
$asset_manager->enqueue_user_language_script();
Expand Down

0 comments on commit d8ef0d8

Please sign in to comment.