Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix encoded characters in term labels in Instant Results #3113

Merged
merged 1 commit into from
Nov 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix encoded characters in term labels.
  • Loading branch information
JakePT committed Nov 7, 2022
commit 7a1d967ded1a2ae330bae73c97441c55469c6b8a
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* WordPress dependencies.
*/
import { useCallback, useContext, useMemo, WPElement } from '@wordpress/element';
import { decodeEntities } from '@wordpress/html-entities';
import { __, sprintf } from '@wordpress/i18n';

/**
Expand Down Expand Up @@ -68,7 +69,7 @@ export default ({ defaultIsOpen, label, postTypes, name }) => {
checked: selectedTerms.includes(term_id),
count: doc_count,
id: `ep-search-${name}-${term_id}`,
label,
label: decodeEntities(label),
parent: parent.toString(),
order: term_order,
value: term_id.toString(),
Expand Down