Skip to content

Commit 2ff4916

Browse files
committed
👌 IMPROVE: Updated variables to fix deprecation notice
1 parent 96dac60 commit 2ff4916

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

public/class-clwc-public.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,31 @@ class Customer_Loyalty_Public {
3131
*
3232
* @since 1.0.0
3333
* @access private
34-
* @var string $_plugin_name - The ID of this plugin.
34+
* @var string $plugin_name - The ID of this plugin.
3535
*/
36-
private $_plugin_name;
36+
private $plugin_name;
3737

3838
/**
3939
* The version of this plugin.
4040
*
4141
* @since 1.0.0
4242
* @access private
43-
* @var string $_version - The current version of this plugin.
43+
* @var string $version - The current version of this plugin.
4444
*/
45-
private $_version;
45+
private $version;
4646

4747
/**
4848
* Initialize the class and set its properties.
4949
*
50-
* @param string $_plugin_name - The name of the plugin.
51-
* @param string $_version - The version of this plugin.
50+
* @param string $plugin_name - The name of the plugin.
51+
* @param string $version - The version of this plugin.
5252
*
5353
* @since 1.0.0
5454
*/
55-
public function __construct( $_plugin_name, $_version ) {
55+
public function __construct( $plugin_name, $version ) {
5656

57-
$this->plugin_name = $_plugin_name;
58-
$this->version = $_version;
57+
$this->plugin_name = $plugin_name;
58+
$this->version = $version;
5959

6060
}
6161

@@ -66,7 +66,7 @@ public function __construct( $_plugin_name, $_version ) {
6666
* @return void
6767
*/
6868
public function enqueue_styles() {
69-
wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/clwc-public.min.css', array(), $this->version, 'all' );
69+
wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/clwc-public.min.css', [], $this->version, 'all' );
7070
}
7171

7272
/**

0 commit comments

Comments
 (0)