[wp-trac] [WordPress Trac] #32729: WP sanitize + (plus) and other mathematic symbols as nothing instead of dash separator

WordPress Trac noreply at wordpress.org
Sun Dec 6 18:16:56 UTC 2015


#32729: WP sanitize + (plus) and other mathematic symbols as nothing instead of
dash separator
--------------------------+-----------------------------
 Reporter:  thomask       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Formatting    |     Version:  4.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------------

Comment (by jgrodel):

 Here's a quick patch for removing + and = from post slugs instead of
 replacing it with -. % is already removed. There's a line in there
 specifically replacing times with an x (included below). Might want to
 change that too?
  {{{#!php
                 // Convert times to x
                 $title = str_replace( '%c3%97', 'x', $title );
 }}}

 (WCUS)

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


More information about the wp-trac mailing list