[wp-trac] [WordPress Trac] #58664: Eliminate manual construction of script tags in WP_Scripts

WordPress Trac noreply at wordpress.org
Fri Sep 1 03:31:39 UTC 2023


#58664: Eliminate manual construction of script tags in WP_Scripts
-------------------------------------------------+-------------------------
 Reporter:  westonruter                          |       Owner:
                                                 |  westonruter
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  6.4
Component:  Script Loader                        |     Version:  6.3
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests changes-    |     Focuses:  javascript
  requested                                      |
-------------------------------------------------+-------------------------

Comment (by westonruter):

 I realize I expanded the scope to include scripts printed outside of
 WP_Scripts as well. If it turns out expanding the scope too much, we can
 extract that non-WP_Scripts changes to another ticket. But in order to be
 able to apply Strict CSP, all scripts need to be printed in the same way
 so the attributes can be filtered.

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


More information about the wp-trac mailing list