[wp-trac] [WordPress Trac] #45378: Convert soft hyphens when sanitizing titles

WordPress Trac noreply at wordpress.org
Mon Nov 19 13:54:29 UTC 2018


#45378: Convert soft hyphens when sanitizing titles
--------------------------+-----------------------------
 Reporter:  andg          |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When copying and pasting titles from a different website, sometimes soft
 hyphens are included in the copied text. Unfortunately, the
 `sanitize_title_with_dashes` function doesn't take care of this
 eventuality, since it doesn't convert `%c2%ad` instances to empty strings.

 In our client's installation, this led to slugs not being generated
 correctly, making those posts inaccessible.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45378>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list