WordPress.org

Make WordPress Core

Changeset 7875


Ignore:
Timestamp:
05/02/08 17:26:30 (6 years ago)
Author:
ryan
Message:

Fix send_to_editor escaping. Props Glotzfisch. fixes #6898 for 2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/wp-admin/includes/media.php

    r7867 r7875  
    5656 
    5757    if ( $url ) 
    58         $html = "<a href='".attribute_escape($url)."'$rel>$html</a>"; 
     58        $html = '<a href="' . clean_url($url) . "\"$rel>$html</a>"; 
    5959 
    6060    $html = apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url, $size ); 
Note: See TracChangeset for help on using the changeset viewer.