Created
January 8, 2012 16:35
-
-
Save shawnsandy/1578913 to your computer and use it in GitHub Desktop.
WP theme demo bar fixed to work with WP3.3 in debug mode
This file contains hidden or 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 | |
/* admin menu */ | |
add_action('admin_menu', 'TDB_menu'); | |
//wp_theme_demo_bar.php changed line 542 to userlevel 8 > manage_options ********************************** | |
function TDB_menu() { | |
global $zv_wptdb_plugin_name; | |
$pluginpage = add_options_page($zv_wptdb_plugin_name, 'WP Theme Demo Bar', 'manage_options', __FILE__, 'TDB_options'); | |
add_action('admin_head-'.$pluginpage, 'wpthemedemobar_admin_head'); | |
} | |
/** widget.php line 88 register_widget_control - wp_register_widget_control **********************************/ | |
function wpthemedemobar_widget_init() { | |
wp_register_sidebar_widget('wpthemedemobar_widget', __('Themes Drop-down Menu'), 'wpthemedemobar_widget', array('classname' => 'wpthemedemobar_widget', 'description' => __('A drop-down menu for users to preview themes using Wordpress Theme Demo Bar plugin'))); | |
wp_register_widget_control('wpthemedemobar_widget','wpthemedemobar_widget', 'wpthemedemobar_widget_control'); | |
//************************************************************/ | |
echo ecs_html($zv_wptdb_plugin_name); //wp_theme_demo_bar.php changed wp_specialchars to ecs_html() | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment