mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 11:53:53 +02:00
Change name -> plugin_name for consistency
This commit is contained in:
parent
b08802742d
commit
dbf2c73757
2 changed files with 14 additions and 14 deletions
|
@ -27,9 +27,9 @@ class Plugin_Name_Admin {
|
|||
*
|
||||
* @since 1.0.0
|
||||
* @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.
|
||||
|
@ -44,12 +44,12 @@ class Plugin_Name_Admin {
|
|||
* Initialize the class and set its properties.
|
||||
*
|
||||
* @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.
|
||||
*/
|
||||
public function __construct( $name, $version ) {
|
||||
public function __construct( $plugin_name, $version ) {
|
||||
|
||||
$this->name = $name;
|
||||
$this->plugin_name = $plugin_name;
|
||||
$this->version = $version;
|
||||
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ class Plugin_Name_Admin {
|
|||
* 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.
|
||||
*/
|
||||
|
||||
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
|
||||
* @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.
|
||||
|
@ -44,12 +44,12 @@ class Plugin_Name_Public {
|
|||
* Initialize the class and set its properties.
|
||||
*
|
||||
* @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.
|
||||
*/
|
||||
public function __construct( $name, $version ) {
|
||||
public function __construct( $plugin_name, $version ) {
|
||||
|
||||
$this->name = $name;
|
||||
$this->plugin_name = $plugin_name;
|
||||
$this->version = $version;
|
||||
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ class Plugin_Name_Public {
|
|||
* 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.
|
||||
*/
|
||||
|
||||
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