From d0097bbd08e8989e5b756afa070cea84272ca2f1 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 6 Apr 2021 09:57:16 +0200 Subject: Enque admin stylesheet in a better place. The original location caused an ugly warning. --- giglogadmin.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'giglogadmin.php') 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(); -- cgit v1.2.3