Skip to content

Commit

Permalink
Ensure the latest Flurry script is loaded (bust cache)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmcrty committed Sep 7, 2018
1 parent 3850653 commit f75446b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions flurry.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Flurry
Plugin URI: https://github.com/joshmcrty/flurry-wp
Description: Adds falling snow to your site using the Flurry plugin for jQuery.
Version: 1.1.0
Version: 1.1.1
Author: Josh McCarty
Author URI: http://joshmccarty.com
License: GPL2
Expand Down Expand Up @@ -773,7 +773,7 @@ function flurry_load_flurry_scripts() {
$present_options = array_diff( $options, array( '' ) );

// Enqueue Flurry jQuery plugin
wp_enqueue_script( 'flurry', plugins_url( 'public/js/jquery.flurry.min.js', __FILE__ ), array( 'jquery' ), false, true );
wp_enqueue_script( 'flurry', plugins_url( 'public/js/jquery.flurry.min.js', __FILE__ ), array( 'jquery' ), '1.1.0', true );

// Output Flurry settings on the page
wp_localize_script( 'flurry' , 'flurryOptions', $present_options );
Expand Down
9 changes: 7 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: joshmccarty
Tags: flurry, snow, falling snow, snowing, jquery, winter
Requires at least: 4.5
Tested up to: 4.9.8
Stable tag: 1.1.0
Stable tag: 1.1.1
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -48,6 +48,9 @@ Not currently, although a vanilla JS version may be available in the future.
1. All of the available settings for Flurry

== Changelog ==
= 1.1.1 =
* Ensure the latest Flurry script is loaded if browser has an older version cached

= 1.1.0 =
* Update to latest version of Flurry jQuery plugin
* Add additional character, color, and startRotation options
Expand All @@ -63,7 +66,6 @@ Not currently, although a vanilla JS version may be available in the future.
* First public release

== Upgrade Notice ==

= 1.0 =
Provides the latest version of Flurry for jQuery with improved performance.

Expand All @@ -72,3 +74,6 @@ Fixes a permissions issue for non-admin users.

= 1.1.0 =
Provides the latest version of Flurry for jQuery with additional customization options.

= 1.1.1 =
Ensures the latest Flurry script is loaded by browsers.

0 comments on commit f75446b

Please sign in to comment.