Changeset 20910
- Timestamp:
- 05/25/2012 06:54:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-customize-manager.php
r20908 r20910 847 847 // Callback function for sanitizing the header textcolor setting. 848 848 function sanitize_header_textcolor( $color ) { 849 if ( empty( $color ) ) 850 return get_theme_support( 'custom-header', 'default-text-color' ); 851 852 elseif ( $color == 'blank' ) 849 if ( $color == 'blank' ) 853 850 return 'blank'; 854 851 … … 860 857 $color = preg_replace( '/[^0-9a-fA-F]/', '', $color ); 861 858 862 if ( preg_match('|[A-Fa-f0-9]{3,6}|', $color ) ) 859 // 3 or 6 hex digits. 860 if ( preg_match('|^([A-Fa-f0-9]{3}){1,2}$|', $color ) ) 863 861 return $color; 864 862 865 return $color;863 return null; 866 864 }
Note: See TracChangeset
for help on using the changeset viewer.