Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 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/MakeClickable.php

    r46586 r47122  
    3737    }
    3838
    39     // tests that make_clickable will not link trailing periods, commas and
    40     // (semi-)colons in URLs with protocol (i.e. http://wordpress.org)
     39    /**
     40     * Tests that make_clickable() will not link trailing periods, commas,
     41     * and (semi-)colons in URLs with protocol (i.e. http://wordpress.org).
     42     */
    4143    function test_strip_trailing_with_protocol() {
    4244        $urls_before   = array(
     
    6264    }
    6365
    64     // tests that make_clickable will not link trailing periods, commas and
    65     // (semi-)colons in URLs with protocol (i.e. http://wordpress.org)
     66    /**
     67     * Tests that make_clickable() will not link trailing periods, commas,
     68     * and (semi-)colons in URLs with protocol (i.e. http://wordpress.org).
     69     */
    6670    function test_strip_trailing_with_protocol_nothing_afterwards() {
    6771        $urls_before   = array(
     
    8993    }
    9094
    91     // tests that make_clickable will not link trailing periods, commas and
    92     // (semi-)colons in URLs without protocol (i.e. www.wordpress.org)
     95    /**
     96     * Tests that make_clickable() will not link trailing periods, commas,
     97     * and (semi-)colons in URLs without protocol (i.e. www.wordpress.org).
     98     */
    9399    function test_strip_trailing_without_protocol() {
    94100        $urls_before   = array(
     
    114120    }
    115121
    116     // tests that make_clickable will not link trailing periods, commas and
    117     // (semi-)colons in URLs without protocol (i.e. www.wordpress.org)
     122    /**
     123     * Tests that make_clickable() will not link trailing periods, commas,
     124     * and (semi-)colons in URLs without protocol (i.e. www.wordpress.org).
     125     */
    118126    function test_strip_trailing_without_protocol_nothing_afterwards() {
    119127        $urls_before   = array(
     
    139147    }
    140148
    141     // #4570
     149    /**
     150     * @ticket 4570
     151     */
    142152    function test_iri() {
    143153        $urls_before   = array(
     
    156166    }
    157167
    158     // #10990
     168    /**
     169     * @ticket 10990
     170     */
    159171    function test_brackets_in_urls() {
    160172        $urls_before   = array(
     
    191203    }
    192204
    193     // Based on a real comments which were incorrectly linked. #11211
     205    /**
     206     * Based on real comments which were incorrectly linked.
     207     *
     208     * @ticket 11211
     209     */
    194210    function test_real_world_examples() {
    195211        $urls_before   = array(
     
    210226    }
    211227
    212     // #14993
     228    /**
     229     * @ticket 14993
     230     */
    213231    function test_twitter_hash_bang() {
    214232        $urls_before   = array(
     
    350368        $in = array(
    351369            'Some text with a link <a href="http://example.com">http://example.com</a>',
    352             //'<a href="http://wordpress.org">This is already a link www.wordpress.org</a>', // fails in 3.3.1 too
     370            // '<a href="http://wordpress.org">This is already a link www.wordpress.org</a>', // Fails in 3.3.1 too.
    353371        );
    354372        foreach ( $in as $text ) {
Note: See TracChangeset for help on using the changeset viewer.