WordPress.org

Make WordPress Core

Ticket #18887: themes.php.display_header_text.rev2.diff

File themes.php.display_header_text.rev2.diff, 549 bytes (added by chipbennett, 3 years ago)

Less verbose phpDoc and functional code, as per Scribu's recommendation

  • .

     
    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 for the Custom Image Header. 
     1438 *  
     1439 * @uses        get_header_textcolor() 
     1440 * @return      boolean 
     1441 * @since       3.3.1 
     1442 */ 
     1443function display_header_text() { 
     1444        return 'blank' != get_header_textcolor(); 
     1445} 
     1446 
     1447/** 
    14331448 * Retrieve header image for custom header. 
    14341449 * 
    14351450 * @since 2.1.0