- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.8/wp-admin/includes/media.php
r11639 r12296 478 478 } 479 479 if ( !empty($src) ) 480 $html = "<img src=' $src' alt='$alt'$class />";481 $html = apply_filters('image_send_to_editor_url', $html, $src, $alt, $align);480 $html = "<img src='" . esc_url($src) . "' alt='$alt'$class />"; 481 $html = apply_filters('image_send_to_editor_url', $html, esc_url_raw($src), $alt, $align); 482 482 return media_send_to_editor($html); 483 483 } … … 570 570 $title = basename($href); 571 571 if ( !empty($title) && !empty($href) ) 572 $html = "<a href=' $href' >$title</a>";573 $html = apply_filters('audio_send_to_editor_url', $html, $href, $title);572 $html = "<a href='" . esc_url($href) . "' >$title</a>"; 573 $html = apply_filters('audio_send_to_editor_url', $html, esc_url_raw($href), $title); 574 574 return media_send_to_editor($html); 575 575 } … … 624 624 $title = basename($href); 625 625 if ( !empty($title) && !empty($href) ) 626 $html = "<a href=' $href' >$title</a>";627 $html = apply_filters('video_send_to_editor_url', $html, $href, $title);626 $html = "<a href='" . esc_url($href) . "' >$title</a>"; 627 $html = apply_filters('video_send_to_editor_url', $html, esc_url_raw($href), $title); 628 628 return media_send_to_editor($html); 629 629 } … … 678 678 $title = basename($href); 679 679 if ( !empty($title) && !empty($href) ) 680 $html = "<a href=' $href' >$title</a>";681 $html = apply_filters('file_send_to_editor_url', $html, $href, $title);680 $html = "<a href='" . esc_url($href) . "' >$title</a>"; 681 $html = apply_filters('file_send_to_editor_url', $html, esc_url_raw($href), $title); 682 682 return media_send_to_editor($html); 683 683 }
Note: See TracChangeset
for help on using the changeset viewer.