WordPress.org

Make WordPress Core

Ticket #14152: 14152.diff

File 14152.diff, 503 bytes (added by duck_, 10 years ago)
  • wp-admin/js/custom-background.dev.js

     
    1414
    1515        jQuery('#background-color').keyup(function() {
    1616                var _hex = jQuery('#background-color').val(), hex = _hex;
    17                 if ( hex[0] != '#' )
     17                if ( hex.charAt(0) != '#' )
    1818                        hex = '#' + hex;
    1919                hex = hex.replace(/[^#a-fA-F0-9]+/, '');
    2020                if ( hex != _hex )