mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 15:47:38 +02:00
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:
parent
24f2415b80
commit
b38af2d56d
@ -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
Block a user