Make WordPress Core

Ticket #20847: 20847.diff

File 20847.diff, 1.5 KB (added by GaryJ, 13 years ago)
  • wp-includes/pluggable.php

     
    15281528                        set_transient('random_seed', $seed);
    15291529        }
    15301530
    1531         // Take the first 8 digits for our value
     1531        // Take the first 8 characters for our value
    15321532        $value = substr($rnd_value, 0, 8);
    15331533
    15341534        // Strip the first eight, leaving the remainder for the next call to wp_rand().
  • wp-includes/class-wp-customize-manager.php

     
    916916/**
    917917 * Validates a hex color.
    918918 *
    919  * Returns either '', a 3 or 6 digit hex color (with #), or null.
     919 * Returns either '', a 3 or 6 character hex color (with #), or null.
    920920 * For validating values without a #, see sanitize_hex_color_no_hash().
    921921 *
    922922 * @since 3.4.0
     
    925925        if ( '' === $color )
    926926                return '';
    927927
    928         // 3 or 6 hex digits, or the empty string.
     928        // 3 or 6 hex characters, or the empty string.
    929929        if ( preg_match('|^#([A-Fa-f0-9]{3}){1,2}$|', $color ) )
    930930                return $color;
    931931
     
    939939 * UI, which makes it difficult to use or upgrade to other color types such as
    940940 * rgba, hsl, rgb, and html color names.
    941941 *
    942  * Returns either '', a 3 or 6 digit hex color (without a #), or null.
     942 * Returns either '', a 3 or 6 character hex color (without a #), or null.
    943943 *
    944944 * @since 3.4.0
    945945 */