Always escape the URL echoed by header_image(). fixes #23664.

git-svn-id: https://develop.svn.wordpress.org/trunk@23633 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-03-07 05:30:00 +00:00
parent 458b77814c
commit 3213c4ca46

View File

@ -981,12 +981,12 @@ function is_random_header_image( $type = 'any' ) {
} }
/** /**
* Display header image path. * Display header image URL.
* *
* @since 2.1.0 * @since 2.1.0
*/ */
function header_image() { function header_image() {
echo get_header_image(); echo esc_url( get_header_image() );
} }
/** /**