Changeset 24687
- Timestamp:
- 07/12/2013 08:41:46 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-customize-manager.php
r24344 r24687 976 976 * 977 977 * Accepts 'blank', and otherwise uses sanitize_hex_color_no_hash(). 978 * Returns default text color if hex color is empty. 978 979 * 979 980 * @since 3.4.0 … … 983 984 */ 984 985 public function _sanitize_header_textcolor( $color ) { 985 return ( 'blank' === $color ) ? 'blank' : sanitize_hex_color_no_hash( $color ); 986 if ( 'blank' === $color ) 987 return 'blank'; 988 989 $color = sanitize_hex_color_no_hash( $color ); 990 if ( empty( $color ) ) 991 $color = get_theme_support( 'custom-header', 'default-text-color' ); 992 993 return $color; 986 994 } 987 995 };
Note: See TracChangeset
for help on using the changeset viewer.