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

git-svn-id: https://develop.svn.wordpress.org/trunk@14610 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-05-13 21:44:37 +00:00
parent ddcf72d638
commit 98a20461dc
1 changed files with 6 additions and 2 deletions

View File

@ -1326,7 +1326,9 @@ function remove_theme_mods() {
* @return string
*/
function get_header_textcolor() {
return get_theme_mod('header_textcolor', HEADER_TEXTCOLOR);
$default = defined('HEADER_TEXTCOLOR') ? HEADER_TEXTCOLOR : '';
return get_theme_mod('header_textcolor', $default);
}
/**
@ -1347,7 +1349,9 @@ function header_textcolor() {
* @return string
*/
function get_header_image() {
return get_theme_mod('header_image', HEADER_IMAGE);
$default = defined('HEADER_IMAGE') ? HEADER_IMAGE : '';
return get_theme_mod('header_image', $default);
}
/**