wordpress-develop/tests/phpunit/tests/functions
Adam Silverstein d4b2126f07 Security: add Content-Security-Policy script loaders.
Add new functions `wp_get_script_tag`, `wp_print_script_tag`, `wp_print_inline_script_tag` and `wp_get_inline_script_tag` that support script attributes. Enables passing attributes such as `async` or `nonce`, creating a path forward for enabling a Content-Security-Policy in core, plugins and themes.

Props tomdxw, johnbillion, jadeddragoon, jrchamp, mallorydxw, epicfaace, alinod, enricocarraro, ocean90.
Fixes #39941.




git-svn-id: https://develop.svn.wordpress.org/trunk@50167 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-02 20:53:53 +00:00
..
addMagicQuotes.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
allowedProtocols.php Add ircs and irc6 to the list of allowed protocols. 2020-09-26 21:00:19 +00:00
anonymization.php Tests: Convert a few more function_exists() and extension_loaded() checks to @requires annotations. 2020-09-21 13:25:38 +00:00
canonicalCharset.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
cleanupHeaderComment.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
deprecated.php Tests: Convert the checks for imagejpeg() function availability to use the @requires annotation. 2020-09-21 11:34:06 +00:00
doEnclose.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
getStatusHeaderDesc.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
getWeekstartend.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
isNewDay.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
isSerializedString.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
listFiles.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
numberFormatI18n.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
pluginBasename.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
referer.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
removeQueryArg.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
sizeFormat.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
underscoreReturn.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
wp.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
wpArraySliceAssoc.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
wpAuthCheck.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
wpGetArchives.php Build/Test Tools: Standardise the name, signature, and usage of the wpSetUpBeforeClass() method that's used in test classes. 2020-11-15 13:59:32 +00:00
wpGetMimeTypes.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
wpInlineScriptTag.php Security: add Content-Security-Policy script loaders. 2021-02-02 20:53:53 +00:00
wpListFilter.php Code Modernization: Use explicit visibility for class property declarations. 2020-10-17 16:24:35 +00:00
wpListUtil.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
wpRemoteFopen.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
wpSanitizeScriptAttributes.php Security: add Content-Security-Policy script loaders. 2021-02-02 20:53:53 +00:00
wpScriptTag.php Security: add Content-Security-Policy script loaders. 2021-02-02 20:53:53 +00:00
wpValidateBoolean.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00