Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #39941, comment 40


Ignore:
Timestamp:
09/15/2020 11:51:05 AM (5 years ago)
Author:
enricocarraro
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39941, comment 40

    v2 v3  
    22
    33A plugin can now control every attribute of every script printed by PHP, but there are still three things to do to make WordPress fully compatible with Strict CSP:
    4 * refactor calls to document.write('<script...'), used to load additional scripts, to use document.createElement('script'), inside JavaScript files;
     4* refactor calls to `document.write('<script...')`, used to load additional scripts, to use `document.createElement('script')`, inside JavaScript files;
    55* refactor inline event handlers and javascript URIs;
    66* add to the test suite a rule that checks that scripts are printed only using either wp_print_inline_script_tag or wp_print_script_loader_tag.