Make WordPress Core

Changeset 10710


Ignore:
Timestamp:
03/04/2009 10:54:10 PM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

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

    r10709 r10710  
    465465                if ( !empty($src) )
    466466                        $html = "<img src='$src' alt='$alt'$class />";
     467                $html = apply_filters('image_send_to_editor_url', $html, $src, $alt, $align);
    467468                return media_send_to_editor($html);
    468469        }
    … …  
    556557                if ( !empty($title) && !empty($href) )
    557558                        $html = "<a href='$href' >$title</a>";
     559                $html = apply_filters('audio_send_to_editor_url', $html, $href, $title);
    558560                return media_send_to_editor($html);
    559561        }
    … …  
    609611                if ( !empty($title) && !empty($href) )
    610612                        $html = "<a href='$href' >$title</a>";
     613                $html = apply_filters('video_send_to_editor_url', $html, $href, $title);
    611614                return media_send_to_editor($html);
    612615        }
    … …  
    662665                if ( !empty($title) && !empty($href) )
    663666                        $html = "<a href='$href' >$title</a>";
     667                $html = apply_filters('file_send_to_editor_url', $html, $href, $title);
    664668                return media_send_to_editor($html);
    665669        }
Note: See TracChangeset for help on using the changeset viewer.