Changes between Initial Version and Version 2 of Ticket #22891
- Timestamp:
- 12/12/12 19:01:07 (5 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22891
- Property Keywords dev-feedback needs-testing removed
- Property Status changed from new to closed
- Property Resolution changed from to invalid
- Property Milestone changed from Awaiting Review to
-
Ticket #22891 – Description
initial v2 1 1 I am using the filter 'media_buttons_context' to add my custom media button beside the media upload button in the post/page editor. 2 After updating wordPress to version 3.5 my button is not being shown. [[BR]]2 After updating wordPress to version 3.5 my button is not being shown. 3 3 4 My codes are bellow: [[BR]]5 6 <?php [[BR]]4 My codes are bellow: 5 {{{ 6 <?php 7 7 function wp_myplugin_media_button($context) { 8 $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]]8 $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>'; 9 9 10 10 return sprintf($context, $wp_myplugin_media_button); 11 11 } 12 12 13 add_action('media_buttons_context', 'wp_myplugin_media_button'); [[BR]]13 add_action('media_buttons_context', 'wp_myplugin_media_button'); 14 14 ?> 15 15 }}} 16 16 17 17 What is the main reason of this problem with wp 3.5?
