Always escape the URL echoed by header_image(). fixes #23664.
git-svn-id: http://core.svn.wordpress.org/trunk@23633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
caf591b7aa
commit
aa842e13b1
|
@ -981,12 +981,12 @@ function is_random_header_image( $type = 'any' ) {
|
|||
}
|
||||
|
||||
/**
|
||||
* Display header image path.
|
||||
* Display header image URL.
|
||||
*
|
||||
* @since 2.1.0
|
||||
*/
|
||||
function header_image() {
|
||||
echo get_header_image();
|
||||
echo esc_url( get_header_image() );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue