diff --git a/js/rave-alert-ajax.js b/js/rave-alert-ajax.js index 6a4f90c..fb3f7f5 100644 --- a/js/rave-alert-ajax.js +++ b/js/rave-alert-ajax.js @@ -5,11 +5,10 @@ jQuery( document ).ready( function( $ ) { - // Get minutes of current time for cache busting - var current_time = new Date(); - var current_minutes = current_time.getMinutes(); // Should be a number, like 12, or 59 (function callAjax() { - + // Get minutes of current time for cache busting + var current_time = new Date(); + var current_minutes = current_time.getMinutes(); // Should be a number, like 12, or 59 $.ajax({ method: 'GET', url: rest_php_variables['rest_url'] + '?' + current_minutes, diff --git a/rave-alert-notification.php b/rave-alert-notification.php index 8fd1054..63be1c5 100644 --- a/rave-alert-notification.php +++ b/rave-alert-notification.php @@ -4,7 +4,7 @@ Plugin URI: https://github.com/BellevueCollege/rave-alert-notification Description: Sends Rave Alert notification to Bellevue College WordPress sites. Author: Bellevue College IT Services -Version: 1.7.3 +Version: 1.7.4 Author URI: https://www.bellevuecollege.edu GitHub Plugin URI: bellevuecollege/rave-alert-notification */ @@ -40,7 +40,7 @@ function enqueue_ajax() { open_message_class: "' . addslashes(stripslashes($open_message_class)) . '", is_homepage: "' . $is_homepage . '" };'; - wp_enqueue_script( 'rave-alert-ajax', plugin_dir_url( __FILE__ ) . 'js/rave-alert-ajax.js#asyncdeferload', array('jquery'), '1.7.3', true ); + wp_enqueue_script( 'rave-alert-ajax', plugin_dir_url( __FILE__ ) . 'js/rave-alert-ajax.js#asyncdeferload', array('jquery'), '1.7.4', true ); wp_add_inline_script( 'rave-alert-ajax', $rest_variables, 'before' ); }