WordPress.org

Make WordPress Core

Ticket #10252: 10252.2.patch

File 10252.2.patch, 534 bytes (added by hakre, 5 years ago)

(fixed patch after review by sivel)

  • wp-admin/includes/media.php

     
    107107        $rel = $rel ? ' rel="attachment wp-att-' . esc_attr($id).'"' : ''; 
    108108 
    109109        if ( $url ) 
    110                 $html = '<a href="' . esc_url($url) . "\"$rel>$html</a>"; 
     110                $html = '<a href="' . esc_attr($url) . "\"$rel>$html</a>"; 
    111111 
    112112        $html = apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url, $size ); 
    113113