Make WordPress Core


Ignore:
Timestamp:
02/23/2021 01:58:21 AM (4 years ago)
Author:
peterwilsoncc
Message:

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.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/dependencies/wpInlineScriptTag.php

    r50408 r50409  
    44 * Test wp_get_inline_script_tag() and wp_print_inline_script_tag().
    55 *
    6  * @group functions.php
     6 * @group dependencies
     7 * @group scripts
     8 * @covers ::wp_get_inline_script_tag
     9 * @covers ::wp_print_inline_script_tag
    710 */
    811class Tests_Functions_wpInlineScriptTag extends WP_UnitTestCase {
Note: See TracChangeset for help on using the changeset viewer.