| @@ -52,11 +52,9 @@ | ||
| 52 | 52 | ); |
| 53 | 53 | |
| 54 | 54 | if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) { |
| 55 | 55 | foreach ( $terms as $term ) { |
| 56 | - // Decode HTML entities (e.g. "&" → "&") so the select2 control | |
| 57 | - // shows the real term name instead of the escaped entity. | |
| 58 | - $options[ $term->{$key} ] = wp_specialchars_decode( $term->name, ENT_QUOTES ); | |
| 56 | + $options[ $term->{$key} ] = $term->name; | |
| 59 | 57 | } |
| 60 | 58 | } |
| 61 | 59 | |
| 62 | 60 | return $options; |