Skip to content
Snippets Groups Projects
Commit 94be2ba6 authored by Chris Heitkamp's avatar Chris Heitkamp
Browse files

Load css/js only if not in admin backend

parent 0ff0f096
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
* Plugin Name: Warpzone Status Widget
* Plugin URI: http://www.warpzone.ms
* Description: Widget, dass den aktuellen Warpzone-Status und die Temperaturen an
* Version: 0.1
* Version: 0.2
* Author: Warpzone
* License: Public Domain / GPL (?)
*/
......@@ -17,7 +17,7 @@ class WZ_Status extends WP_Widget {
array( 'classname' => 'wz_status', 'description' => __( 'Zeigt den aktuellen Warpzone-Status und die Temperaturen an.', 'wz_status' ), ) // Args
);
if(is_active_widget(false, false, 'wz_status')) {
if(is_active_widget(false, false, 'wz_status') && !is_admin()) {
wp_register_script( 'wz-status', plugins_url( '/wz-status.js', __FILE__ ), array('jquery'), true );
wp_enqueue_script( 'wz-status' );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment