mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 15:16:59 +00:00
Coding Standards: Use esc_url() instead of esc_attr() for some URLs.
Follow-up to [2063], [2182], [4656], [6952], [9098], [11109], [11204], [17887], [22505], Props kebbet. See #54728. git-svn-id: https://develop.svn.wordpress.org/trunk@52957 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -393,7 +393,7 @@ function get_image_tag( $id, $alt, $title, $align, $size = 'medium' ) {
|
||||
*/
|
||||
$class = apply_filters( 'get_image_tag_class', $class, $id, $align, $size );
|
||||
|
||||
$html = '<img src="' . esc_attr( $img_src ) . '" alt="' . esc_attr( $alt ) . '" ' . $title . $hwstring . 'class="' . $class . '" />';
|
||||
$html = '<img src="' . esc_url( $img_src ) . '" alt="' . esc_attr( $alt ) . '" ' . $title . $hwstring . 'class="' . $class . '" />';
|
||||
|
||||
/**
|
||||
* Filters the HTML content for the image tag.
|
||||
|
||||
Reference in New Issue
Block a user