[wp-trac] [WordPress Trac] #62025: Unable to use wp_kses* with JavaScript templating

WordPress Trac noreply at wordpress.org
Tue Sep 10 15:05:12 UTC 2024


#62025: Unable to use wp_kses* with JavaScript templating
--------------------------+------------------------
 Reporter:  jernstjernst  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Formatting    |     Version:  1.0
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------

Comment (by swissspidy):

 IMO `echo` is a legitimate use case for such scenarios. You could also use
 `wp_print_inline_script_tag`

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62025#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list