From 234aea778e2be3838f75f3d1998e81a37f91becc Mon Sep 17 00:00:00 2001 From: Kaspars Dambis Date: Mon, 13 Jun 2016 12:01:40 +0300 Subject: [PATCH] Implement a global asset version number --- widget-context.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/widget-context.php b/widget-context.php index c3da95d..bd2830f 100644 --- a/widget-context.php +++ b/widget-context.php @@ -14,6 +14,7 @@ class widget_context { + private $asset_version = '1.0.4'; private $sidebars_widgets; private $options_name = 'widget_logic_options'; // Context settings for widgets (visibility, etc) private $settings_name = 'widget_context_settings'; // Widget Context global settings @@ -213,13 +214,14 @@ function admin_scripts( $page ) { 'widget-context-css', plugins_url( 'css/admin.css', plugin_basename( __FILE__ ) ), null, - '1.0.4' + $this->asset_version ); wp_enqueue_script( 'widget-context-js', plugins_url( 'js/widget-context.js', plugin_basename( __FILE__ ) ), - array( 'jquery' ) + array( 'jquery' ), + $this->asset_version ); }