WordPress.org

Make WordPress Core

Changeset 14610


Ignore:
Timestamp:
05/13/2010 09:44:37 PM (8 years ago)
Author:
nacin
Message:

Check if HEADER_ constants are defined before continuing. props ocean90, fixes #13367.

File:
1 edited

Legend:

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

    r14536 r14610  
    13271327 */
    13281328function get_header_textcolor() {
    1329     return get_theme_mod('header_textcolor', HEADER_TEXTCOLOR);
     1329    $default = defined('HEADER_TEXTCOLOR') ? HEADER_TEXTCOLOR : '';
     1330
     1331    return get_theme_mod('header_textcolor', $default);
    13301332}
    13311333
     
    13481350 */
    13491351function get_header_image() {
    1350     return get_theme_mod('header_image', HEADER_IMAGE);
     1352    $default = defined('HEADER_IMAGE') ? HEADER_IMAGE : '';
     1353
     1354    return get_theme_mod('header_image', $default);
    13511355}
    13521356
Note: See TracChangeset for help on using the changeset viewer.