[wp-trac] [WordPress Trac] #44988: The sanitize_html_class() is deceptive / "buggy"

WordPress Trac noreply at wordpress.org
Sun Oct 4 02:14:29 UTC 2020


#44988: The sanitize_html_class() is deceptive / "buggy"
----------------------------+------------------------
 Reporter:  ChiefAlchemist  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Formatting      |     Version:  4.9.6
 Severity:  normal          |  Resolution:  duplicate
 Keywords:                  |     Focuses:
----------------------------+------------------------
Changes (by peterwilsoncc):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 I missed this been opened a couple of years ago, ticket #33924 exists
 previously and hit the roadblock mentioned above: that modifying how the
 classes are sanitized could cause backward compatibility breakages.

 A similar suggestion was made at the time, using a second parameter to
 toggle between permissive and strict escaping.

 I'm going to close this as a duplicate so discussion can continue on
 #33924 and focus on a single ticket. I'm sorry it's taken some time for
 this to happen.

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


More information about the wp-trac mailing list