Plugin Directory

Changeset 3323929


Ignore:
Timestamp:
07/07/2025 10:21:18 PM (9 months ago)
Author:
spapril
Message:

fix version caching for css and js

File:
1 edited

Legend:

Unmodified
Added
Removed
  • showpass/trunk/showpass-wordpress-plugin-shortcode.php

    r3323927 r3323929  
    10521052    if (!is_admin()) {
    10531053        wp_enqueue_style('showpass-font-awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css', array(), null);
    1054         wp_enqueue_style('showpass-style', plugins_url( '/css/showpass-style.css', __FILE__ ), array(), null);
    1055         wp_enqueue_style('showpass-flex-box', plugins_url( '/css/showpass-flex-box.css', __FILE__ ), array(), null);
     1054        wp_enqueue_style('showpass-style', plugins_url( '/css/showpass-style.css', __FILE__ ), array(), SHOWPASS_PLUGIN_VERSION);
     1055        wp_enqueue_style('showpass-flex-box', plugins_url( '/css/showpass-flex-box.css', __FILE__ ), array(), SHOWPASS_PLUGIN_VERSION);
    10561056      if (get_option('option_use_showpass_beta')) {
    1057         wp_enqueue_script('showpass-beta-sdk', plugins_url( '/js/showpass-beta-sdk.js', __FILE__ ), array('jquery'), null, true );
     1057        wp_enqueue_script('showpass-beta-sdk', plugins_url( '/js/showpass-beta-sdk.js', __FILE__ ), array('jquery'), SHOWPASS_PLUGIN_VERSION, true );
    10581058      } else if (get_option('option_use_showpass_demo')){
    1059         wp_enqueue_script('showpass-demo-sdk', plugins_url( '/js/showpass-demo-sdk.js', __FILE__ ), array('jquery'), null, true );
     1059        wp_enqueue_script('showpass-demo-sdk', plugins_url( '/js/showpass-demo-sdk.js', __FILE__ ), array('jquery'), SHOWPASS_PLUGIN_VERSION, true );
    10601060      } else {
    1061         wp_enqueue_script('showpass-sdk', plugins_url( '/js/showpass-sdk.js', __FILE__ ), array('jquery'), null, true );
     1061        wp_enqueue_script('showpass-sdk', plugins_url( '/js/showpass-sdk.js', __FILE__ ), array('jquery'), SHOWPASS_PLUGIN_VERSION, true );
    10621062      }
    10631063        wp_register_script('showpass-calendar-script', plugins_url( '/js/showpass-calendar.js', __FILE__ ), array('jquery'), SHOWPASS_PLUGIN_VERSION, true);
Note: See TracChangeset for help on using the changeset viewer.