diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2021-04-06 09:57:16 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2021-04-06 09:57:16 +0200 |
commit | d0097bbd08e8989e5b756afa070cea84272ca2f1 (patch) | |
tree | b5f1c92d82fb159286187e89837dd8746c5b4e91 | |
parent | f7466e184a4a408d9237947b1fe15323d9c59348 (diff) | |
download | gigologadmin-d0097bbd08e8989e5b756afa070cea84272ca2f1.tar.gz gigologadmin-d0097bbd08e8989e5b756afa070cea84272ca2f1.tar.bz2 gigologadmin-d0097bbd08e8989e5b756afa070cea84272ca2f1.zip |
Enque admin stylesheet in a better place.
The original location caused an ugly warning.
-rw-r--r-- | giglogadmin.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/giglogadmin.php b/giglogadmin.php index 37b9c49..0e59281 100644 --- a/giglogadmin.php +++ b/giglogadmin.php @@ -76,6 +76,9 @@ if ( !class_exists( 'GiglogAdmin_Plugin' ) ) { array( 'GiglogAdmin_ImportGigsPage', 'render_html' )); // callable add_action( 'load-' . $import_hook, array( 'GiglogAdmin_ImportGigsPage', 'submit_form' ) ); + + wp_register_style( 'css_style', plugins_url( '/includes/css/main.css', __FILE__ ) ); + wp_enqueue_style('css_style'); } static function add_help_pages() { @@ -125,8 +128,6 @@ if ( !class_exists( 'GiglogAdmin_Plugin' ) ) { register_activation_hook( __FILE__, array( 'GiglogAdmin_Plugin', 'activate' )); register_deactivation_hook( __FILE__, array( 'GiglogAdmin_Plugin', 'deactivate' )); - wp_register_style ( 'css_style', plugins_url ( '/includes/css/main.css', __FILE__ ) ); - wp_enqueue_style('css_style'); GiglogAdmin_Plugin::init(); |