Skip to content

Commit

Permalink
Implement a global asset version number
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Jun 13, 2016
1 parent 5ec684d commit 234aea7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions widget-context.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
);

}
Expand Down

0 comments on commit 234aea7

Please sign in to comment.