- Timestamp:
- 01/15/2026 11:11:45 AM (8 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dependencies/wpInlineScriptTag.php
r61482 r61485 165 165 ); 166 166 } 167 168 /** 169 * Test failure conditions setting inline script tag contents. 170 * 171 * @ticket 64500 172 */ 173 public function test_script_tag_dangerous_unescapeable_contents() { 174 $this->setExpectedIncorrectUsage( 'wp_get_inline_script_tag' ); 175 /* 176 * </script> cannot be printed inside a script tag 177 * the `example/example` type is an unknown type with no known escaping rules. 178 * The only choice is to abort. 179 */ 180 $result = wp_get_inline_script_tag( 181 '</script>', 182 array( 'type' => 'example/example' ) 183 ); 184 $this->assertSame( '', $result ); 185 } 167 186 }
Note: See TracChangeset
for help on using the changeset viewer.