Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/WPStripAllTags.php

    r46586 r47122  
    1515        $this->assertEquals( "lorem\nipsum", wp_strip_all_tags( $text ) );
    1616
    17         // test removing breaks is working
     17        // Test removing breaks is working.
    1818        $text = 'lorem<br />ipsum';
    1919        $this->assertEquals( 'loremipsum', wp_strip_all_tags( $text, true ) );
    2020
    21         // test script / style tag's contents is removed
     21        // Test script / style tag's contents is removed.
    2222        $text = 'lorem<script>alert(document.cookie)</script>ipsum';
    2323        $this->assertEquals( 'loremipsum', wp_strip_all_tags( $text ) );
     
    2626        $this->assertEquals( 'loremipsum', wp_strip_all_tags( $text ) );
    2727
    28         // test "marlformed" markup of contents
     28        // Test "marlformed" markup of contents.
    2929        $text = "lorem<style>* { display: 'none' }<script>alert( document.cookie )</script></style>ipsum";
    3030        $this->assertEquals( 'loremipsum', wp_strip_all_tags( $text ) );
Note: See TracChangeset for help on using the changeset viewer.