Hi
you should use the wp_enqueue_scripts hook to register your javascripts and stylesheets.
http://wordpress.org/extend/plugins/wp125/
also:
register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead.
Hi
you should use the wp_enqueue_scripts hook to register your javascripts and stylesheets.
http://wordpress.org/extend/plugins/wp125/
also:
register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead.
Maybe I'm missing something, but WP125 1.4.1 is using the wp_enqueue_scripts hook to register stylesheets.
function wp125_stylesheet() {
if (get_option("wp125_disable_default_style")=='') {
wp_register_style('wp125style', wp125_get_plugin_dir('url').'/wp125.css');
wp_enqueue_style('wp125style');
}
}
add_action('wp_enqueue_scripts', 'wp125_stylesheet');
When I wrote the plugin initially, I don't think that hook had existed yet. If I remember correctly, I finally got around to updating it around the time WP 3.3 came out.
The widgets are next on my list.
sorry about that.
Actually I meant in the file adminmenus.php.
I suggest the using admin_enqueue_scripts hook
I suggest using the plugin Log deprecated notices to check your code, it's pretty useful :)
Ah, I see now. I don't know how I missed that before.
And I'll have to take a look at that plugin.
You must log in to post.