Make WordPress Core


Ignore:
Timestamp:
07/24/2020 12:01:32 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Formatting: Filter out the bullet character in sanitize_title_with_dashes().

Props roytanck, deepaklalwani, veromary.
Fixes #49791.

File:
1 edited

Legend:

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

    r46586 r48593  
    102102    }
    103103
     104    /**
     105     * @ticket 49791
     106     */
     107    function test_replaces_bullet() {
     108        $this->assertEquals( 'fancy-title-amazing', sanitize_title_with_dashes( 'Fancy Title • Amazing', '', 'save' ) );
     109    }
     110
    104111    function test_replaces_copy_reg_deg_trade() {
    105112        $this->assertEquals( 'just-a-slug', sanitize_title_with_dashes( 'Just © a Slug', '', 'save' ) );
Note: See TracChangeset for help on using the changeset viewer.