[wp-trac] [WordPress Trac] #27583: Move color sanitize function to wp-includes/formatting.php
WordPress Trac
noreply at wordpress.org
Fri Jun 27 21:39:01 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 | Focuses: template
-------------------------+-----------------------
Comment (by nacin):
Per discussion with tollmanz and I think downstairsdev (both in person,
and at separate times), I'd like to only move sanitize_hex_color().
There's limited benefit to moving the other two. Rather than having three
global functions that almost do the same thing — with one clearly superior
— let's just have one. The only reason for _no_hash() is back-compat with
core stuff. A plugin or theme should avoid and move away from storing
colors without a hash.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27583#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list