Make WordPress Core

Changeset 20240


Ignore:
Timestamp:
03/21/2012 06:48:57 PM (13 years ago)
Author:
nacin
Message:

Introduce display_header_text(). props chipbennett for initial patch. see #18887.

File:
1 edited

Legend:

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

    r20238 r20240  
    920920
    921921/**
     922 * Whether to display the header text.
     923 *
     924 * @since 3.4.0
     925 *
     926 * @return bool
     927 */
     928function display_header_text() {
     929    if ( ! current_theme_supports( 'custom-header', 'header-text' ) )
     930        return false;
     931
     932    $text_color = get_theme_mod( 'header_textcolor', get_theme_support( 'custom-header', 'default-text-color' ) );
     933    return $text_color && 'blank' != $text_color;
     934}
     935
     936/**
    922937 * Retrieve header image for custom header.
    923938 *
Note: See TracChangeset for help on using the changeset viewer.