forked from mirror/_s
Add escaping to custom header example. Make sure that proper attribute escaping is added into the example that's in the custom header include file. Since we're not including this in header.php, we should at least make sure that the example given is proper and passes WordPress Coding Standards checks. See #552 for context.
This commit is contained in:
parent
01f15acadd
commit
63d8fcb190
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
<?php if ( get_header_image() ) : ?>
|
<?php if ( get_header_image() ) : ?>
|
||||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
|
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
|
||||||
<img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="">
|
<img src="<?php header_image(); ?>" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt="">
|
||||||
</a>
|
</a>
|
||||||
<?php endif; // End header image check. ?>
|
<?php endif; // End header image check. ?>
|
||||||
|
|
||||||
|
|
Reference in New Issue