[wp-trac] [WordPress Trac] #49791: sanitize title should filter out the bullet • punctuation mark

WordPress Trac noreply at wordpress.org
Thu Jul 23 23:56:26 UTC 2020


#49791: sanitize title should filter out the bullet • punctuation mark
--------------------------------------+-----------------------------
 Reporter:  veromary                  |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  reviewing
 Priority:  normal                    |   Milestone:  5.5
Component:  Formatting                |     Version:  5.4
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:4 roytanck]:
 > In general, there are probably thousands of characters in the Unicode
 standard that are "not ideal" to include in slugs/URLs. Is there a
 standard approach to dealing with this in core?

 The list in `sanitize_title_with_dashes()` includes some commonly used
 characters and is expanded on a case-by-case basis by specific requests.
 Since the ticket was initially about just one bullet character, let's go
 with that for now and expand further if there are any more requests.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49791#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list