[wp-trac] [WordPress Trac] #39941: Allow using Content-Security-Policy without unsafe-inline

WordPress Trac noreply at wordpress.org
Tue Feb 23 01:58:35 UTC 2021


#39941: Allow using Content-Security-Policy without unsafe-inline
-------------------------------------------------+-------------------------
 Reporter:  tomdxw                               |       Owner:
                                                 |  adamsilverstein
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  5.7
Component:  Security                             |     Version:  4.8
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:  javascript
  note commit                                    |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50409" 50409]:
 {{{
 #!CommitTicketReference repository="" revision="50409"
 Security: move Content-Security-Policy script loaders.

 Move `wp_get_script_tag()`, `wp_print_script_tag()`,
 `wp_print_inline_script_tag()` and `wp_get_inline_script_tag()` functions
 from `functions.php` to `script-loader.php`.

 Relocate related tests to `dependencies` sub-directory.

 Follow up to [50167].
 Props adamsilverstein, hellofromTonya, SergeyBiryukov.
 Fixes #39941.
 }}}

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


More information about the wp-trac mailing list