[wp-trac] [WordPress Trac] #41827: add sanitize_html_class in whole class while there is no spacing.

WordPress Trac noreply at wordpress.org
Thu Sep 7 12:41:11 UTC 2017


#41827: add sanitize_html_class in whole class while there is no spacing.
-----------------------------+------------------------------
 Reporter:  umangvaghela123  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:  administration
-----------------------------+------------------------------

Comment (by SergeyBiryukov):

 Hi @umangvaghela123, thanks for the patch!

 Sanitizing functions are meant for user input or variables that come from
 various APIs, what's the benefit of sanitizing a hardcoded string?

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


More information about the wp-trac mailing list