[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:01:08 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:                |
--------------------------+----------------------
Description changed by SergeyBiryukov:

Old description:

> I am using the filter 'media_buttons_context' to add my custom media
> button beside the media upload button in the post/page editor.
> After updating wordPress to version 3.5 my button is not being
> shown.[[BR]]
>
> My codes are bellow:[[BR]]
>
> <?php[[BR]]
> function wp_myplugin_media_button($context) {
>         $wp_myplugin_media_button = ' %s' . '<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]]
>
>         return sprintf($context, $wp_myplugin_media_button);
> }
>
> add_action('media_buttons_context', 'wp_myplugin_media_button');[[BR]]
> ?>
>

> What is the main reason of this problem with wp 3.5?

New description:

 I am using the filter 'media_buttons_context' to add my custom media
 button beside the media upload button in the post/page editor.
 After updating wordPress to version 3.5 my button is not being shown.

 My codes are bellow:
 {{{
 <?php
 function wp_myplugin_media_button($context) {
         $wp_myplugin_media_button = ' %s' . '<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>';

         return sprintf($context, $wp_myplugin_media_button);
 }

 add_action('media_buttons_context', 'wp_myplugin_media_button');
 ?>
 }}}

 What is the main reason of this problem with wp 3.5?

--

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


More information about the wp-trac mailing list