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:
parent
ddcf72d638
commit
98a20461dc
|
@ -1326,7 +1326,9 @@ function remove_theme_mods() {
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function get_header_textcolor() {
|
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
|
* @return string
|
||||||
*/
|
*/
|
||||||
function get_header_image() {
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue