Changes between Version 2 and Version 3 of Ticket #39941, comment 40
- Timestamp:
- 09/15/2020 11:51:05 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #39941, comment 40
v2 v3 2 2 3 3 A 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; 5 5 * refactor inline event handlers and javascript URIs; 6 6 * 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.