[wp-meta] [Making WordPress.org] #5711: Anchor id not sanitized

Making WordPress.org noreply at wordpress.org
Thu Apr 22 00:21:58 UTC 2021


#5711: Anchor id not sanitized
----------------------------+---------------------
 Reporter:  sebastienserre  |       Owner:  (none)
     Type:  defect          |      Status:  new
 Priority:  normal          |   Milestone:
Component:  Handbooks       |  Resolution:
 Keywords:  needs-patch     |
----------------------------+---------------------

Comment (by dd32):

 Replying to [comment:1 sebastienserre]:

 `sanitize_title_with_dashes` is doing what it's intended to, the problem
 is that it's expected to have accents removed/replaced prior to calling
 it.

 The appropriate code would be `sanitize_title_with_dashes( remove_accents(
 $title ) )` or potentially just `sanitize_title( $title )` which does the
 same thing, but with a more filtered list of slug creation filters.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/5711#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list