| @@ -20,16 +20,16 @@ | ||
| 20 | 20 | public function __construct( $core ) { |
| 21 | 21 | parent::__construct( $core ); |
| 22 | 22 | |
| 23 | 23 | // The cookie notice feature can only be used on an activated license. |
| 24 | - if ( ! $this->license_is_active() || $this->get_option( 'patchstack_license_free', 0 ) == 1 ) { | |
| 24 | + if ( ! $this->license_is_active() || $this->get_option( 'patchstack_license_free', 0 ) == 1 || $this->is_community() ) { | |
| 25 | 25 | return; |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | // Register the actions if the cookie notice message is turned on. |
| 29 | 29 | if ( $this->get_option( 'patchstack_enable_cookie_notice_message', false ) == true ) { |
| 30 | - add_action( 'wp_footer', array( $this, 'add_cookie_notice' ), 1000 ); | |
| 31 | - add_action( 'wp_enqueue_scripts', array( $this, 'public_styles' ) ); | |
| 30 | + add_action( 'wp_footer', [ $this, 'add_cookie_notice' ], 1000 ); | |
| 31 | + add_action( 'wp_enqueue_scripts', [ $this, 'public_styles' ] ); | |
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
| @@ -46,8 +46,8 @@ | ||
| 46 | 46 | * |
| 47 | 47 | * @return void |
| 48 | 48 | */ |
| 49 | 49 | public function public_styles() { |
| 50 | - wp_enqueue_style( 'patchstack', $this->plugin->url . 'assets/css/public.min.css', array(), $this->plugin->version ); | |
| 51 | - wp_enqueue_script( 'patchstack', $this->plugin->url . 'assets/js/public.min.js', array(), $this->plugin->version ); | |
| 50 | + wp_enqueue_style( 'patchstack', $this->plugin->url . 'assets/css/public.min.css', [], $this->plugin->version ); | |
| 51 | + wp_enqueue_script( 'patchstack', $this->plugin->url . 'assets/js/public.min.js', [], $this->plugin->version ); | |
| 52 | 52 | } |
| 53 | 53 | } |