Filter text to be sent to editor when used From URL. Props nbachiyski. fixes #6588

git-svn-id: http://svn.automattic.com/wordpress/trunk@10710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-03-04 22:54:10 +00:00
parent b6f5ddf7f0
commit f8ada7a44a
1 changed files with 4 additions and 0 deletions

View File

@ -464,6 +464,7 @@ function media_upload_image() {
}
if ( !empty($src) )
$html = "<img src='$src' alt='$alt'$class />";
$html = apply_filters('image_send_to_editor_url', $html, $src, $alt, $align);
return media_send_to_editor($html);
}
@ -555,6 +556,7 @@ function media_upload_audio() {
$title = basename($href);
if ( !empty($title) && !empty($href) )
$html = "<a href='$href' >$title</a>";
$html = apply_filters('audio_send_to_editor_url', $html, $href, $title);
return media_send_to_editor($html);
}
@ -608,6 +610,7 @@ function media_upload_video() {
$title = basename($href);
if ( !empty($title) && !empty($href) )
$html = "<a href='$href' >$title</a>";
$html = apply_filters('video_send_to_editor_url', $html, $href, $title);
return media_send_to_editor($html);
}
@ -661,6 +664,7 @@ function media_upload_file() {
$title = basename($href);
if ( !empty($title) && !empty($href) )
$html = "<a href='$href' >$title</a>";
$html = apply_filters('file_send_to_editor_url', $html, $href, $title);
return media_send_to_editor($html);
}