[wp-trac] Re: [WordPress Trac] #9424: Allow the media buttons to be filtered so they can be removed/altered

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 31 18:49:49 GMT 2009


#9424: Allow the media buttons to be filtered so they can be removed/altered
---------------------------+------------------------------------------------
 Reporter:  simonwheatley  |       Owner:            
     Type:  enhancement    |      Status:  new       
 Priority:  normal         |   Milestone:  Unassigned
Component:  Media          |     Version:            
 Severity:  normal         |    Keywords:  has-patch 
---------------------------+------------------------------------------------

Comment(by simonwheatley):

 Here's a quick plugin to test the diff. It will write the following to
 your PHP error log:

 {{{
 [31-Mar-2009 19:47:47] About to return nothing, here's the args Array
 (
     [0] => <a href='media-
 upload.php?post_id=-1238525267&amp;type=image&amp;TB_iframe=true'
 id='add_image' class='thickbox' title='Add an Image'><img src='images
 /media-button-image.gif' alt='Add an Image' /></a>
 )

 [31-Mar-2009 19:47:47] About to return nothing, here's the args Array
 (
     [0] => <a href='media-
 upload.php?post_id=-1238525267&amp;type=video&amp;TB_iframe=true'
 id='add_video' class='thickbox' title='Add Video'><img src='images/media-
 button-video.gif' alt='Add Video' /></a>
 )

 [31-Mar-2009 19:47:47] About to return nothing, here's the args Array
 (
     [0] => <a href='media-
 upload.php?post_id=-1238525267&amp;type=audio&amp;TB_iframe=true'
 id='add_audio' class='thickbox' title='Add Audio'><img src='images/media-
 button-music.gif' alt='Add Audio' /></a>
 )

 [31-Mar-2009 19:47:47] About to return nothing, here's the args Array
 (
     [0] =>
 )
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9424#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list