PluginProbe
Patchstack – WordPress & Plugins Security / 2.2.7
Patchstack – WordPress & Plugins Security v2.2.7
2.3.7 trunk 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.17 2.1.18 2.1.19 2.1.2 2.1.20 2.1.21 2.1.22 2.1.23 2.1.24 2.1.25 2.1.3 2.1.4 2.1.5 2.1.6 All 49 releases
← All changes | includes/cookie-notice.php +4 -4 2.1.212.2.7 View file →
@@ -26,10 +26,10 @@
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 }