[wp-trac] [WordPress Trac] #62797: wp_add_inline_script does not properly escape '<!-- <script>' in contents

WordPress Trac noreply at wordpress.org
Fri Jan 10 07:15:45 UTC 2025


#62797: wp_add_inline_script does not properly escape '<!-- <script>' in contents
-------------------------------------+------------------------------
 Reporter:  artpi                    |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Editor                   |     Version:  6.7.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  administration
-------------------------------------+------------------------------

Comment (by sainathpoojary):

 Hey @artpi,

 I have tested the PR. While trying to reproduce the issue, I encountered
 this warning. It might be related to a regex issue in this
 [https://github.com/WordPress/wordpress-
 develop/blob/6bc9463aa136db64d8393faf00bc6c6ba10dbd10/src/wp-
 includes/functions.wp-scripts.php#L144 line]



 [[Image(https://rioudcpuyg.ufs.sh/f/PL8E4NiPUWyO9PFMNgfEFACY0dej4LmhwrRp2qTtuWnBUoas)]]

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


More information about the wp-trac mailing list