Ticket #6588: filter-send-to-editor-from-url.diff
| File filter-send-to-editor-from-url.diff, 1.2 KB (added by nbachiyski, 5 years ago) |
|---|
-
wp-admin/includes/media.php
280 280 } 281 281 if ( !empty($src) ) 282 282 $html = "<img src='$src' alt='$alt'$class />"; 283 $html = apply_filters('image_send_to_editor_url', $html, $src, $alt, $align); 283 284 return media_send_to_editor($html); 284 285 } 285 286 … … 318 319 $title = basename($href); 319 320 if ( !empty($title) && !empty($href) ) 320 321 $html = "<a href='$href' >$title</a>"; 322 $html = apply_filters('audio_send_to_editor_url', $html, $href, $title); 321 323 return media_send_to_editor($html); 322 324 } 323 325 … … 356 358 $title = basename($href); 357 359 if ( !empty($title) && !empty($href) ) 358 360 $html = "<a href='$href' >$title</a>"; 361 $html = apply_filters('video_send_to_editor_url', $html, $href, $title); 359 362 return media_send_to_editor($html); 360 363 } 361 364 … … 394 397 $title = basename($href); 395 398 if ( !empty($title) && !empty($href) ) 396 399 $html = "<a href='$href' >$title</a>"; 400 $html = apply_filters('file_send_to_editor_url', $html, $href, $title); 397 401 return media_send_to_editor($html); 398 402 } 399 403
