WordPress.org

Make WordPress Core

Ticket #18575: 18575_test.patch

File 18575_test.patch, 708 bytes (added by iamcal, 7 years ago)

test case

  • wp-testcase/test_includes_formatting.php

     
    469469                $this->assertEquals(' “Testing”', wptexturize(' "Testing"'));
    470470                $this->assertEquals('&“Testing”', wptexturize('&"Testing"'));
    471471        }
     472
     473        //WP Ticket #18575
     474        function test_unbalacned_brackets() {
     475                $this->knownWPBug(18575);
     476                $this->assertEquals('[hello <a href="foo[bar](\'baz\')">world</a>', wptexturize('[hello <a href="foo[bar](\'baz\')">world</a>'));
     477        }
    472478}
    473479
    474480class TestCleanUrl extends WPTestCase {