1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-12-22 20:03:53 +02:00

correct action hook for register_admin_styles

Changed the action hook from 'admin_print_styles' to 'admin_enqueue_scripts' which is better.

See: http://codex.wordpress.org/Plugin_API/Action_Reference/admin_enqueue_scripts

See: http://make.wordpress.org/core/2011/12/12/use-wp_enqueue_scripts-not-wp_print_styles-to-enqueue-scripts-and-styles-for-the-frontend/
This commit is contained in:
Mikkel Breum 2013-04-07 22:05:15 +02:00
parent 5d70b7e79e
commit 68da31e4be

View file

@ -42,7 +42,7 @@ class PluginName {
add_action( 'init', array( $this, 'plugin_textdomain' ) );
// Register admin styles and scripts
add_action( 'admin_print_styles', array( $this, 'register_admin_styles' ) );
add_action( 'admin_enqueue_scripts', array( $this, 'register_admin_styles' ) );
add_action( 'admin_enqueue_scripts', array( $this, 'register_admin_scripts' ) );
// Register site styles and scripts