duh, use the right variable

This commit is contained in:
John Bintz 2009-07-01 11:57:36 -04:00
parent 7389277397
commit 86962ea6a8

View File

@ -46,8 +46,8 @@ add_filter('the_content', array($plugin_wonderful, 'inject_ads_into_body_copy'))
if (version_compare($wp_version, "2.8", ">=")) { if (version_compare($wp_version, "2.8", ">=")) {
add_action('widgets_init', '__plugin_wonderful_load_widgets'); add_action('widgets_init', '__plugin_wonderful_load_widgets');
} else { } else {
register_sidebar_widget(__('Plugin Wonderful', 'plugin-wonderful'), array($this, 'render_pre28_widget')); register_sidebar_widget(__('Plugin Wonderful', 'plugin-wonderful'), array($plugin_wonderful, 'render_pre28_widget'));
register_widget_control(__('Plugin Wonderful', 'plugin-wonderful'), array($this, 'render_pre28_widget_control')); register_widget_control(__('Plugin Wonderful', 'plugin-wonderful'), array($plugin_wonderful, 'render_pre28_widget_control'));
} }
register_activation_hook(__FILE__, array($plugin_wonderful, 'handle_activation')); register_activation_hook(__FILE__, array($plugin_wonderful, 'handle_activation'));