mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-05 17:50:03 +00:00
Docs, Tests: Correctly capitalize JavaScript.
Correct Javascript to JavaScript within Wordpress core ;) See #51800, #51802. git-svn-id: https://develop.svn.wordpress.org/trunk@49758 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -41,7 +41,7 @@ class Tests_Formatting_WPTrimWords extends WP_UnitTestCase {
|
||||
function test_strips_script_and_style_content() {
|
||||
$trimmed = 'This text contains. It should go.';
|
||||
|
||||
$text = 'This text contains<script>alert(" Javascript");</script>. It should go.';
|
||||
$text = 'This text contains<script>alert(" JavaScript");</script>. It should go.';
|
||||
$this->assertSame( $trimmed, wp_trim_words( $text ) );
|
||||
|
||||
$text = 'This text contains<style>#css { width:expression(alert("css")) }</style>. It should go.';
|
||||
|
||||
Reference in New Issue
Block a user