[wp-trac] [WordPress Trac] #59886: enqueue scripts is html encoding the resulting string

WordPress Trac noreply at wordpress.org
Sat Nov 11 00:35:03 UTC 2023


#59886: enqueue scripts is html encoding the resulting string
--------------------------+------------------------------
 Reporter:  probed        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  6.4
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------

Comment (by dmsnell):

 Glad that was it @probed. Note that while it worked before, it
 //shouldn't// have 😅 because escaping out of the URL isn't something we
 want to do. The code I shared should work on WordPress 6.2 or newer. If
 you want to support older versions you'll need to modify the HTML at your
 own risk.

 https://developer.wordpress.org/reference/classes/wp_html_tag_processor/

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


More information about the wp-trac mailing list