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

git-svn-id: http://svn.automattic.com/wordpress/trunk@14610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-05-13 21:44:37 +00:00
parent 24f2415b80
commit b38af2d56d
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);
}
/**