WordPress.org

Make WordPress Core

Ticket #51881: SanitizeTitleWithDashes.php.patch

File SanitizeTitleWithDashes.php.patch, 621 bytes (added by pbearne, 3 months ago)
  • tests/phpunit/tests/formatting/SanitizeTitleWithDashes.php

     
    77        function test_strips_html() {
    88                $input    = 'Captain <strong>Awesome</strong>';
    99                $expected = 'captain-awesome';
    10                 $this->assertSame( $expected, sanitize_title( $input ) );
     10                $this->assertSame( $expected, sanitize_title_with_dashes( $input ) );
    1111        }
    1212
    1313        function test_strips_unencoded_percent_signs() {