summaryrefslogtreecommitdiffstats
path: root/giglogadmin.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-04-06 09:57:16 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-04-06 09:57:16 +0200
commitd0097bbd08e8989e5b756afa070cea84272ca2f1 (patch)
treeb5f1c92d82fb159286187e89837dd8746c5b4e91 /giglogadmin.php
parentf7466e184a4a408d9237947b1fe15323d9c59348 (diff)
downloadgigologadmin-d0097bbd08e8989e5b756afa070cea84272ca2f1.tar.gz
gigologadmin-d0097bbd08e8989e5b756afa070cea84272ca2f1.tar.bz2
gigologadmin-d0097bbd08e8989e5b756afa070cea84272ca2f1.zip
Enque admin stylesheet in a better place.
The original location caused an ugly warning.
Diffstat (limited to 'giglogadmin.php')
-rw-r--r--giglogadmin.php5
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();