[wp-trac] [WordPress Trac] #27583: Move color sanitize function to wp-includes/formatting.php

WordPress Trac noreply at wordpress.org
Fri Jul 4 05:29:14 UTC 2014


#27583: Move color sanitize function to wp-includes/formatting.php
-----------------------------------+-----------------------
 Reporter:  tollmanz               |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  4.0
Component:  Formatting             |     Version:  3.4
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:  template
-----------------------------------+-----------------------

Comment (by jeremyfelt):

 Replying to [comment:12 nacin]:
 > So, we could introduce validate_hex_color(), then leave
 sanitize_hex_color() where it is, and have it wrap it. Or offer a
 deprecation notice if we really wanted, as well.

 Part of this is moving `sanitize_hex_color()` so that it's available
 outside of the customizer. We would need to move and wrap if we wanted
 both.

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


More information about the wp-trac mailing list