mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-10-31 19:03:00 +02:00
Merge pull request #224 from mAAdhaTTah/variable-fix
Change name -> plugin_name for consistency
This commit is contained in:
commit
025d61efee
|
@ -27,9 +27,9 @@ class Plugin_Name_Admin {
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @access private
|
* @access private
|
||||||
* @var string $name The ID of this plugin.
|
* @var string $plugin_name The ID of this plugin.
|
||||||
*/
|
*/
|
||||||
private $name;
|
private $plugin_name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The version of this plugin.
|
* The version of this plugin.
|
||||||
|
@ -44,12 +44,12 @@ class Plugin_Name_Admin {
|
||||||
* Initialize the class and set its properties.
|
* Initialize the class and set its properties.
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @var string $name The name of this plugin.
|
* @var string $plugin_name The name of this plugin.
|
||||||
* @var string $version The version of this plugin.
|
* @var string $version The version of this plugin.
|
||||||
*/
|
*/
|
||||||
public function __construct( $name, $version ) {
|
public function __construct( $plugin_name, $version ) {
|
||||||
|
|
||||||
$this->name = $name;
|
$this->plugin_name = $plugin_name;
|
||||||
$this->version = $version;
|
$this->version = $version;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ class Plugin_Name_Admin {
|
||||||
* class.
|
* class.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
wp_enqueue_style( $this->name, plugin_dir_url( __FILE__ ) . 'css/plugin-name-admin.css', array(), $this->version, 'all' );
|
wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/plugin-name-admin.css', array(), $this->version, 'all' );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ class Plugin_Name_Admin {
|
||||||
* class.
|
* class.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
wp_enqueue_script( $this->name, plugin_dir_url( __FILE__ ) . 'js/plugin-name-admin.js', array( 'jquery' ), $this->version, false );
|
wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/plugin-name-admin.js', array( 'jquery' ), $this->version, false );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,9 +27,9 @@ class Plugin_Name_Public {
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @access private
|
* @access private
|
||||||
* @var string $name The ID of this plugin.
|
* @var string $plugin_name The ID of this plugin.
|
||||||
*/
|
*/
|
||||||
private $name;
|
private $plugin_name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The version of this plugin.
|
* The version of this plugin.
|
||||||
|
@ -44,12 +44,12 @@ class Plugin_Name_Public {
|
||||||
* Initialize the class and set its properties.
|
* Initialize the class and set its properties.
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @var string $name The name of the plugin.
|
* @var string $plugin_name The name of the plugin.
|
||||||
* @var string $version The version of this plugin.
|
* @var string $version The version of this plugin.
|
||||||
*/
|
*/
|
||||||
public function __construct( $name, $version ) {
|
public function __construct( $plugin_name, $version ) {
|
||||||
|
|
||||||
$this->name = $name;
|
$this->plugin_name = $plugin_name;
|
||||||
$this->version = $version;
|
$this->version = $version;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ class Plugin_Name_Public {
|
||||||
* class.
|
* class.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
wp_enqueue_style( $this->name, plugin_dir_url( __FILE__ ) . 'css/plugin-name-public.css', array(), $this->version, 'all' );
|
wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/plugin-name-public.css', array(), $this->version, 'all' );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ class Plugin_Name_Public {
|
||||||
* class.
|
* class.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
wp_enqueue_script( $this->name, plugin_dir_url( __FILE__ ) . 'js/plugin-name-public.js', array( 'jquery' ), $this->version, false );
|
wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/plugin-name-public.js', array( 'jquery' ), $this->version, false );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue