Make WordPress Core


Ignore:
Timestamp:
05/11/2012 07:55:07 PM (13 years ago)
Author:
nacin
Message:

display_header_text() should only return true if the theme mod value is not 'blank'. An empty string is valid -- there is no requirement for it to be truthy. see #18887. see #20600.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r20712 r20772  
    851851
    852852    $text_color = get_theme_mod( 'header_textcolor', get_theme_support( 'custom-header', 'default-text-color' ) );
    853     return $text_color && 'blank' != $text_color;
     853    return 'blank' != $text_color;
    854854}
    855855
Note: See TracChangeset for help on using the changeset viewer.