[wp-trac] [WordPress Trac] #22891: WordPress Filter media_buttons_context is Not Working in WP Version 3.5

WordPress Trac noreply at wordpress.org
Wed Dec 12 19:08:45 UTC 2012


#22891: WordPress Filter media_buttons_context is Not Working in WP Version 3.5
--------------------------+----------------------
 Reporter:  onetarek      |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Editor        |     Version:  3.5
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |
--------------------------+----------------------

Comment (by onetarek):

 My problem has been solved by using the action 'media_buttons' instead of
 'media_buttons_context' [[BR]]
 New codes are bellow.

 <?php[[BR]]

 add_action( 'media_buttons', 'wp_myplugin_media_button',100);
 function wp_myplugin_media_button() {
         echo '<a href="media-
 upload.php?type=upload&TB_iframe=true&tab=upload" class="thickbox"><img
 src="http://onetarek.com/wp-content/uploads/2012/12/shortcode_btn.png"
 width=15 height=15 /></a>';
 }[[BR]]

 ?>

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


More information about the wp-trac mailing list