WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/15/2017 09:21:34 PM (3 years ago)
Author:
johnbillion
Message:

Remove failing tests related to square brackets being stripped in URL sanitizers.

See #30284.

Merges [30514] to the 4.0 branch.

See #40463

Location:
branches/4.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.0

  • branches/4.0/tests/phpunit/tests/formatting/MakeClickable.php

    r26974 r40453  
    366366
    367367    /**
    368      * @ticket 16859
    369      */
    370     function test_square_brackets() {
    371         $urls_before = array(
    372             'http://example.com/?foo[bar]=baz',
    373             'http://example.com/?baz=bar&foo[bar]=baz',
    374         );
    375         $urls_expected = array(
    376             '<a href="http://example.com/?foo%5Bbar%5D=baz" rel="nofollow">http://example.com/?foo%5Bbar%5D=baz</a>',
    377             '<a href="http://example.com/?baz=bar&#038;foo%5Bbar%5D=baz" rel="nofollow">http://example.com/?baz=bar&#038;foo%5Bbar%5D=baz</a>',
    378         );
    379         foreach ($urls_before as $key => $url) {
    380             $this->assertEquals( $urls_expected[$key], make_clickable( $url ) );
    381         }
    382     }
    383 
    384     /**
    385368     * @ticket 19028
    386369     */
Note: See TracChangeset for help on using the changeset viewer.