Changes between Initial Version and Version 2 of Ticket #22891

Timestamp:
12/12/12 19:01:07 (5 months ago)
Author:
SergeyBiryukov
Comment:

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  
    11I 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]] 
     2After updating wordPress to version 3.5 my button is not being shown. 
    33 
    4 My codes are bellow:[[BR]] 
    5  
    6 <?php[[BR]] 
     4My codes are bellow: 
     5{{{ 
     6<?php 
    77function 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>'; 
    99 
    1010        return sprintf($context, $wp_myplugin_media_button); 
    1111} 
    1212 
    13 add_action('media_buttons_context', 'wp_myplugin_media_button');[[BR]] 
     13add_action('media_buttons_context', 'wp_myplugin_media_button'); 
    1414?> 
    15  
     15}}} 
    1616 
    1717What is the main reason of this problem with wp 3.5?