WP-UserOnline - Version 2.88.1

Version Description

Download this release

Release Info

Developer GamerZ
Plugin Icon WP-UserOnline
Version 2.88.1
Comparing to
See all releases

Code changes from version 2.88.0 to 2.88.1

Files changed (3) hide show
  1. admin.php +14 -4
  2. readme.txt +4 -1
  3. wp-useronline.php +1 -1
admin.php CHANGED
@@ -65,11 +65,21 @@ class UserOnline_Options extends scbAdminPage {
65
  $options['url'] = ! empty( $options['url'] ) ? esc_url_raw( trim( $options['url'] ) ) : '';
66
  $options['names'] = ! empty( $options['names'] ) ? (int) $options['names'] : 0;
67
 
68
- foreach ( $options['templates'] as $key => $template )
69
- if ( is_array( $template ) )
 
 
 
70
  $options['templates'][$key]['text'] = wp_kses_post( trim( $template['text'] ) );
71
- else
 
 
 
 
 
72
  $options['templates'][$key] = wp_kses_post( trim( $template ) );
 
 
73
 
74
  return $options;
75
  }
@@ -206,7 +216,7 @@ class UserOnline_Options extends scbAdminPage {
206
  'type' => 'text',
207
  'name' => array( 'naming', $type ),
208
  'extra' => 'size="30"',
209
- 'desc' => html( 'td', '%input%' )
210
  ), $data );
211
  }
212
  echo "\n</tr>\n";
65
  $options['url'] = ! empty( $options['url'] ) ? esc_url_raw( trim( $options['url'] ) ) : '';
66
  $options['names'] = ! empty( $options['names'] ) ? (int) $options['names'] : 0;
67
 
68
+ foreach ( $options['naming'] as $key => $template ) {
69
+ $options['naming'][$key] = wp_kses_post( trim( $template ) );
70
+ }
71
+ foreach ( $options['templates'] as $key => $template ) {
72
+ if ( is_array( $template ) ) {
73
  $options['templates'][$key]['text'] = wp_kses_post( trim( $template['text'] ) );
74
+ if ( ! empty( $template['separators'] ) && is_array( $template['separators'] ) ) {
75
+ foreach( $template['separators'] as $seperator_key => $seperator_value ) {
76
+ $options['templates'][$key]['separators'][$seperator_key] = wp_kses_post( trim( $seperator_value ) );
77
+ }
78
+ }
79
+ } else {
80
  $options['templates'][$key] = wp_kses_post( trim( $template ) );
81
+ }
82
+ }
83
 
84
  return $options;
85
  }
216
  'type' => 'text',
217
  'name' => array( 'naming', $type ),
218
  'extra' => 'size="30"',
219
+ 'desc' => html( 'td', $type )
220
  ), $data );
221
  }
222
  echo "\n</tr>\n";
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://lesterchan.net/site/donation/
4
  Tags: useronline, usersonline, wp-useronline, online, users, user, ajax, widget
5
  Requires at least: 4.0
6
  Tested up to: 6.0
7
- Stable tag: 2.88.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -88,6 +88,9 @@ Make sure your host is running PHP 5. The only foolproof way to do this is to ad
88
  `var_dump(PHP_VERSION);`
89
 
90
  ## Changelog
 
 
 
91
  ### 2.88.0
92
  * NEW: Bump to WordPress 6.0.
93
  * FIXED: Fixed XSS. Props @steffinstanly.
4
  Tags: useronline, usersonline, wp-useronline, online, users, user, ajax, widget
5
  Requires at least: 4.0
6
  Tested up to: 6.0
7
+ Stable tag: 2.88.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
88
  `var_dump(PHP_VERSION);`
89
 
90
  ## Changelog
91
+ ### 2.88.1
92
+ * FIXED: Fixed XSS. Props Juampa Rodriguez.
93
+
94
  ### 2.88.0
95
  * NEW: Bump to WordPress 6.0.
96
  * FIXED: Fixed XSS. Props @steffinstanly.
wp-useronline.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP-UserOnline
4
  Plugin URI: https://lesterchan.net/portfolio/programming/php/
5
  Description: Enable you to display how many users are online on your Wordpress site
6
- Version: 2.88.0
7
  Author: Lester 'GaMerZ' Chan
8
  Author URI: https://lesterchan.net
9
  Text Domain: wp-useronline
3
  Plugin Name: WP-UserOnline
4
  Plugin URI: https://lesterchan.net/portfolio/programming/php/
5
  Description: Enable you to display how many users are online on your Wordpress site
6
+ Version: 2.88.1
7
  Author: Lester 'GaMerZ' Chan
8
  Author URI: https://lesterchan.net
9
  Text Domain: wp-useronline