Created
December 18, 2012 06:25
-
-
Save unscripted/4325562 to your computer and use it in GitHub Desktop.
Fixes issue in Simplex theme where shortcoder media button disappears after upgrading WordPress to 3.5. Former method was using media_buttons_context. That method was deprecated in 3.5. (http://core.trac.wordpress.org/ticket/22559) This file is located @Simplex/core/shortcoder/init.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('media_buttons' , 'ts_shortcoder_button', 11); | |
function ts_shortcoder_button(){ | |
$shortcoder_button_image = THEME_CORE_URL . '/images/shortcoder_icon.png'; | |
$shortcoder_button = ' %s'; | |
echo '<a title = "' . __('Insert a Shortcode' , TS_DOMAIN) . '" href="' . THEME_CORE_URL . '/shortcoder/shortcoder.php?init=true&TB_iframe=true&width=500" class="thickbox"><img src = "' . $shortcoder_button_image . '" /></a>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment