Ticket #20847: 20847.diff
File 20847.diff, 1.5 KB (added by , 13 years ago) |
---|
-
wp-includes/pluggable.php
1528 1528 set_transient('random_seed', $seed); 1529 1529 } 1530 1530 1531 // Take the first 8 digits for our value1531 // Take the first 8 characters for our value 1532 1532 $value = substr($rnd_value, 0, 8); 1533 1533 1534 1534 // Strip the first eight, leaving the remainder for the next call to wp_rand(). -
wp-includes/class-wp-customize-manager.php
916 916 /** 917 917 * Validates a hex color. 918 918 * 919 * Returns either '', a 3 or 6 digithex color (with #), or null.919 * Returns either '', a 3 or 6 character hex color (with #), or null. 920 920 * For validating values without a #, see sanitize_hex_color_no_hash(). 921 921 * 922 922 * @since 3.4.0 … … 925 925 if ( '' === $color ) 926 926 return ''; 927 927 928 // 3 or 6 hex digits, or the empty string.928 // 3 or 6 hex characters, or the empty string. 929 929 if ( preg_match('|^#([A-Fa-f0-9]{3}){1,2}$|', $color ) ) 930 930 return $color; 931 931 … … 939 939 * UI, which makes it difficult to use or upgrade to other color types such as 940 940 * rgba, hsl, rgb, and html color names. 941 941 * 942 * Returns either '', a 3 or 6 digithex color (without a #), or null.942 * Returns either '', a 3 or 6 character hex color (without a #), or null. 943 943 * 944 944 * @since 3.4.0 945 945 */