Skip to content

Commit

Permalink
version 2.4.8
Browse files Browse the repository at this point in the history
* updated plugin version
* Bug fix: filemtime() start failed
  • Loading branch information
rajulKhabir.mondal committed Jul 10, 2018
1 parent 248b359 commit 7915626
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
19 changes: 16 additions & 3 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Contributors: rajulmondal5
Donate link: https://profiles.wordpress.org/rajulmondal5
Tags: users, online, active, live, pusher, chat, login
Requires at least: 2.4.3
Tested up to: 2.4.5
Stable tag: 2.4.5
Requires at least: 2.4.8
Tested up to: 2.4.8
Stable tag: 2.4.8
Requires PHP: 5.2.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -100,6 +100,19 @@ We have used <a href="https://pusher.com/" target="_blank" >Pusher</a> as a 3rd

== Changelog ==

= 2.4.8 =
* 10-07-2018
* updated plugin version
* Bug fix: filemtime() start failed

= 2.4.7 =
* 10-07-2018
* updated plugin version

= 2.4.6 =
* 10-07-2018
* Bug fix: filemtime() start failed

= 2.4.5 =
* 10-07-2018
* Updated readme.txt to mention pusher service used in our application
Expand Down
6 changes: 3 additions & 3 deletions stay-alive.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Stay Alive
Plugin URI: https://github.com/razzul/stayalive
description: Stay Alive: wordpress plugin to check logged in user's status
Version: 2.4.5
Version: 2.4.8
Author: razzul
Author URI: https://github.com/razzul
License: MIT
Expand Down Expand Up @@ -95,7 +95,7 @@ public function stay_alive_checker()
$event_name = 'stay-alive-event';
$stay_alive_trigger = !empty($options['stay_alive_trigger']) ? $options['stay_alive_trigger'] : 'test_stay_alive';
wp_enqueue_script('pusher', '//js.pusher.com/4.1/pusher.min.js', array(), '4.1.0', true);
wp_register_script('stay_aliv_js', plugins_url( 'assets/js/stay-alive.js', __FILE__ ), array(), '2.4.5', true );
wp_register_script('stay_aliv_js', plugins_url( 'assets/js/stay-alive.js', __FILE__ ), array(), '2.4.8', true );
wp_localize_script('stay_aliv_js', 'config', array('current_user_id' => $current_user_id, 'channel_name' => $channel_name,'event_name' => $event_name, 'credentials' => $options, 'auth_url' => site_url() .'/wp-admin/admin-ajax.php?action=stay_alive_auth'));
wp_enqueue_script('stay_aliv_js');
}
Expand All @@ -120,7 +120,7 @@ public function add_plugin_page()
*/
public function stay_alive_css($value = '')
{
$my_css_ver = date("ymd-Gis", filemtime( plugin_dir_path( __FILE__ ) . 'css/stay-alive.css' ));
$my_css_ver = "1.0.0";
wp_register_style( 'stay_aliv_css', plugins_url( 'assets/css/stay-alive.css', __FILE__ ), false, $my_css_ver );
wp_enqueue_style ( 'stay_aliv_css' );
}
Expand Down

0 comments on commit 7915626

Please sign in to comment.