WordPress.org

Make WordPress Core

Ticket #18887: themes.php.display_header_text.diff

File themes.php.display_header_text.diff, 793 bytes (added by chipbennett, 4 years ago)

Add conditional function display_header_text() to themes.php

  • .

     
    14301430} 
    14311431 
    14321432/** 
     1433 * Check if Display Text is True 
     1434 *  
     1435 * Conditional check to determine if the  
     1436 * user has enabled the Display Text  
     1437 * option. Returns TRUE or FALSE based  
     1438 * on the value returned by get_header_textcolor().  
     1439 * If get_header_textcolor() returns 'blank'  
     1440 * then display_header_text() returns FALSE;  
     1441 * otherwise, returns true. 
     1442 *  
     1443 * @uses        get_header_textcolor() 
     1444 * @return      boolean 
     1445 * @since       3.3.1 
     1446 */ 
     1447function display_header_text() { 
     1448        $display_header_text = ( 'blank' != get_header_textcolor() ? true : false ); 
     1449        return $display_header_text; 
     1450} 
     1451 
     1452/** 
    14331453 * Retrieve header image for custom header. 
    14341454 * 
    14351455 * @since 2.1.0