mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2025-01-03 01:33:54 +02:00
Replacing $this->version
by the new class constant
This commit is contained in:
parent
cd5e787b8e
commit
d3bb173aca
1 changed files with 4 additions and 4 deletions
|
@ -158,7 +158,7 @@ class Plugin_Name {
|
|||
|
||||
$screen = get_current_screen();
|
||||
if ( $screen->id == $this->plugin_screen_hook_suffix ) {
|
||||
wp_enqueue_style( $this->plugin_slug .'-admin-styles', plugins_url( 'css/admin.css', __FILE__ ), array(), $this->version );
|
||||
wp_enqueue_style( $this->plugin_slug .'-admin-styles', plugins_url( 'css/admin.css', __FILE__ ), array(), self::VERSION );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -178,7 +178,7 @@ class Plugin_Name {
|
|||
|
||||
$screen = get_current_screen();
|
||||
if ( $screen->id == $this->plugin_screen_hook_suffix ) {
|
||||
wp_enqueue_script( $this->plugin_slug . '-admin-script', plugins_url( 'js/admin.js', __FILE__ ), array( 'jquery' ), $this->version );
|
||||
wp_enqueue_script( $this->plugin_slug . '-admin-script', plugins_url( 'js/admin.js', __FILE__ ), array( 'jquery' ), self::VERSION );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -189,7 +189,7 @@ class Plugin_Name {
|
|||
* @since 1.0.0
|
||||
*/
|
||||
public function enqueue_styles() {
|
||||
wp_enqueue_style( $this->plugin_slug . '-plugin-styles', plugins_url( 'css/public.css', __FILE__ ), array(), $this->version );
|
||||
wp_enqueue_style( $this->plugin_slug . '-plugin-styles', plugins_url( 'css/public.css', __FILE__ ), array(), self::VERSION );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -198,7 +198,7 @@ class Plugin_Name {
|
|||
* @since 1.0.0
|
||||
*/
|
||||
public function enqueue_scripts() {
|
||||
wp_enqueue_script( $this->plugin_slug . '-plugin-script', plugins_url( 'js/public.js', __FILE__ ), array( 'jquery' ), $this->version );
|
||||
wp_enqueue_script( $this->plugin_slug . '-plugin-script', plugins_url( 'js/public.js', __FILE__ ), array( 'jquery' ), self::VERSION );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue