Use json_encode() to properly encode the translated strings for TinyMCE
|Reported by:||azaozz||Owned by:||azaozz|
Similar to $wp_scripts->localize(). It's better/safer to use json_encode when outputting translated strings for use in JS.
Change History (4)
- Owner set to azaozz
- Resolution set to fixed
- Status changed from new to closed
- Resolution fixed deleted
- Status changed from closed to reopened
Note: See TracTickets for help on using tickets.