Version Description
Download this release
Release Info
Developer | GamerZ |
Plugin | WP-UserOnline |
Version | 2.87.6 |
Comparing to | |
See all releases |
Code changes from version 2.87.5 to 2.87.6
- bots.php +5 -1
- core.php +1 -1
- readme.txt +8 -2
- scb/Cron.php +3 -2
- scb/Forms.php +2 -2
- wp-stats.php +59 -6
- wp-useronline.php +1 -1
bots.php
CHANGED
@@ -4,8 +4,9 @@ function useronline_get_bots() {
|
|
4 |
$bots = array(
|
5 |
'360Spider' => '360spider',
|
6 |
'AddThis' => 'addthis',
|
|
|
7 |
'AdScanner' => 'adscanner',
|
8 |
-
|
9 |
'Ahrefs' => 'ahrefsbot',
|
10 |
'Alex' => 'ia_archiver',
|
11 |
'AllTheWeb' => 'fast-webcrawler',
|
@@ -86,16 +87,19 @@ function useronline_get_bots() {
|
|
86 |
'PetalBot' => 'PetalBot',
|
87 |
'PhantomJS' => 'phantomjs',
|
88 |
'Picsearch' => 'picsearch',
|
|
|
89 |
'Proximic' => 'proximic',
|
90 |
'PubSub' => 'pubsub',
|
91 |
'Radian6' => 'radian6',
|
92 |
'RadioUserland' => 'userland',
|
|
|
93 |
'RyteBot' => 'RyteBot',
|
94 |
'Moz' => 'rogerbot',
|
95 |
'Qwantify' => 'Qwantify',
|
96 |
'Scoutjet' => 'Scoutjet',
|
97 |
'Screaming Frog SEO Spider' => 'Screaming Frog SEO Spider',
|
98 |
'SEOkicks' => 'seokicks-robot',
|
|
|
99 |
'SemrushBot' => 'semrushbot',
|
100 |
'SerendeputyBot' => 'serendeputybot',
|
101 |
'Seznam' => 'seznam',
|
4 |
$bots = array(
|
5 |
'360Spider' => '360spider',
|
6 |
'AddThis' => 'addthis',
|
7 |
+
'Adsbot' => 'Adsbot',
|
8 |
'AdScanner' => 'adscanner',
|
9 |
+
'AHC' => 'AHC',
|
10 |
'Ahrefs' => 'ahrefsbot',
|
11 |
'Alex' => 'ia_archiver',
|
12 |
'AllTheWeb' => 'fast-webcrawler',
|
87 |
'PetalBot' => 'PetalBot',
|
88 |
'PhantomJS' => 'phantomjs',
|
89 |
'Picsearch' => 'picsearch',
|
90 |
+
'Pinterestbot' => 'Pinterestbot',
|
91 |
'Proximic' => 'proximic',
|
92 |
'PubSub' => 'pubsub',
|
93 |
'Radian6' => 'radian6',
|
94 |
'RadioUserland' => 'userland',
|
95 |
+
'Re-re Studio' => 'Re-re Studio',
|
96 |
'RyteBot' => 'RyteBot',
|
97 |
'Moz' => 'rogerbot',
|
98 |
'Qwantify' => 'Qwantify',
|
99 |
'Scoutjet' => 'Scoutjet',
|
100 |
'Screaming Frog SEO Spider' => 'Screaming Frog SEO Spider',
|
101 |
'SEOkicks' => 'seokicks-robot',
|
102 |
+
'Semanticbot' => 'Semanticbot',
|
103 |
'SemrushBot' => 'semrushbot',
|
104 |
'SerendeputyBot' => 'serendeputybot',
|
105 |
'Seznam' => 'seznam',
|
core.php
CHANGED
@@ -192,7 +192,7 @@ class UserOnline_Core {
|
|
192 |
if ( empty( $page_title ) )
|
193 |
$page_title = ' » ' . strip_tags( $_SERVER['REQUEST_URI'] );
|
194 |
elseif ( is_singular() )
|
195 |
-
$page_title = ' » ' .
|
196 |
}
|
197 |
$page_title = get_bloginfo( 'name' ) . $page_title;
|
198 |
|
192 |
if ( empty( $page_title ) )
|
193 |
$page_title = ' » ' . strip_tags( $_SERVER['REQUEST_URI'] );
|
194 |
elseif ( is_singular() )
|
195 |
+
$page_title = ' » ' . $page_title;
|
196 |
}
|
197 |
$page_title = get_bloginfo( 'name' ) . $page_title;
|
198 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: GamerZ, scribu
|
|
3 |
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: 5.
|
7 |
-
Stable tag: 2.87.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -88,6 +88,12 @@ 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.85.5
|
92 |
* NEW: Bump to WordPress 5.4
|
93 |
* NEW: Added more bots
|
3 |
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: 5.9
|
7 |
+
Stable tag: 2.87.6
|
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.85.6
|
92 |
+
* NEW: Bump to WordPress 5.6
|
93 |
+
* NEW: Added more bots
|
94 |
+
* NEW: Remove hardcoded Archive text in page title
|
95 |
+
* FIXED: Update SCB Framework to support PHP 8
|
96 |
+
|
97 |
### 2.85.5
|
98 |
* NEW: Bump to WordPress 5.4
|
99 |
* NEW: Added more bots
|
scb/Cron.php
CHANGED
@@ -13,15 +13,16 @@ class scbCron {
|
|
13 |
/**
|
14 |
* Create a new cron job.
|
15 |
*
|
16 |
-
* @param string|bool $file (optional) Reference to main plugin file
|
17 |
* @param array $args List of args:
|
18 |
* string $action OR callback $callback
|
19 |
* string $schedule OR number $interval
|
20 |
* array $callback_args (optional)
|
21 |
*
|
|
|
|
|
22 |
* @return void
|
23 |
*/
|
24 |
-
public function __construct( $file = false
|
25 |
|
26 |
// Set time & schedule
|
27 |
if ( isset( $args['time'] ) ) {
|
13 |
/**
|
14 |
* Create a new cron job.
|
15 |
*
|
|
|
16 |
* @param array $args List of args:
|
17 |
* string $action OR callback $callback
|
18 |
* string $schedule OR number $interval
|
19 |
* array $callback_args (optional)
|
20 |
*
|
21 |
+
* @param string|bool $file (optional) Reference to main plugin file
|
22 |
+
*
|
23 |
* @return void
|
24 |
*/
|
25 |
+
public function __construct( $args, $file = false ) {
|
26 |
|
27 |
// Set time & schedule
|
28 |
if ( isset( $args['time'] ) ) {
|
scb/Forms.php
CHANGED
@@ -57,12 +57,12 @@ class scbForms {
|
|
57 |
* Generates a form.
|
58 |
*
|
59 |
* @param array $inputs
|
60 |
-
* @param array $formdata (optional)
|
61 |
* @param string $nonce
|
|
|
62 |
*
|
63 |
* @return string
|
64 |
*/
|
65 |
-
public static function form( $inputs, $formdata = null
|
66 |
$output = '';
|
67 |
foreach ( $inputs as $input ) {
|
68 |
$output .= self::input( $input, $formdata );
|
57 |
* Generates a form.
|
58 |
*
|
59 |
* @param array $inputs
|
|
|
60 |
* @param string $nonce
|
61 |
+
* @param array $formdata (optional)
|
62 |
*
|
63 |
* @return string
|
64 |
*/
|
65 |
+
public static function form( $inputs, $nonce, $formdata = null ) {
|
66 |
$output = '';
|
67 |
foreach ( $inputs as $input ) {
|
68 |
$output .= self::input( $input, $formdata );
|
wp-stats.php
CHANGED
@@ -2,13 +2,58 @@
|
|
2 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
3 |
|
4 |
class UserOnline_WpStats {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
|
|
|
|
|
|
|
|
9 |
}
|
10 |
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
public function page_admin_general_stats( $content ) {
|
13 |
$stats_display = get_option( 'stats_display' );
|
14 |
|
@@ -17,7 +62,15 @@ class UserOnline_WpStats {
|
|
17 |
return $content;
|
18 |
}
|
19 |
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
public function page_general_stats( $content ) {
|
22 |
$stats_display = get_option( 'stats_display' );
|
23 |
|
@@ -38,5 +91,5 @@ class UserOnline_WpStats {
|
|
38 |
return $content;
|
39 |
}
|
40 |
}
|
41 |
-
UserOnline_WpStats::init();
|
42 |
|
|
2 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
3 |
|
4 |
class UserOnline_WpStats {
|
5 |
+
/**
|
6 |
+
* Variables
|
7 |
+
*
|
8 |
+
* @method static
|
9 |
+
*
|
10 |
+
* @var UserOnline_WpStats
|
11 |
+
*/
|
12 |
+
private static $instance;
|
13 |
|
14 |
+
/**
|
15 |
+
* Constructor method
|
16 |
+
*
|
17 |
+
* @access public
|
18 |
+
*/
|
19 |
+
public function __construct() {
|
20 |
+
add_action( 'plugins_loaded', array( $this, 'add_hooks' ) );
|
21 |
}
|
22 |
|
23 |
+
/**
|
24 |
+
* Initializes the plugin object and returns its instance
|
25 |
+
*
|
26 |
+
* @return UserOnline_WpStats
|
27 |
+
*/
|
28 |
+
public static function get_instance() {
|
29 |
+
if ( ! isset( self::$instance ) ) {
|
30 |
+
self::$instance = new self();
|
31 |
+
}
|
32 |
+
|
33 |
+
return self::$instance;
|
34 |
+
}
|
35 |
+
|
36 |
+
/**
|
37 |
+
* Adds all the plugin's hooks
|
38 |
+
*
|
39 |
+
* @access public
|
40 |
+
*
|
41 |
+
* @return void
|
42 |
+
*/
|
43 |
+
public function add_hooks() {
|
44 |
+
add_filter( 'wp_stats_page_admin_plugins', array( $this, 'page_admin_general_stats' ) );
|
45 |
+
add_filter( 'wp_stats_page_plugins', array( $this, 'page_general_stats' ) );
|
46 |
+
}
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Add WP-UserOnline General Stats To WP-Stats Page Options
|
50 |
+
*
|
51 |
+
* @param string $content
|
52 |
+
*
|
53 |
+
* @access public
|
54 |
+
*
|
55 |
+
* @return string
|
56 |
+
*/
|
57 |
public function page_admin_general_stats( $content ) {
|
58 |
$stats_display = get_option( 'stats_display' );
|
59 |
|
62 |
return $content;
|
63 |
}
|
64 |
|
65 |
+
/**
|
66 |
+
* Add WP-UserOnline General Stats To WP-Stats Page
|
67 |
+
*
|
68 |
+
* @param string $content
|
69 |
+
*
|
70 |
+
* @access public
|
71 |
+
*
|
72 |
+
* @return string
|
73 |
+
*/
|
74 |
public function page_general_stats( $content ) {
|
75 |
$stats_display = get_option( 'stats_display' );
|
76 |
|
91 |
return $content;
|
92 |
}
|
93 |
}
|
|
|
94 |
|
95 |
+
UserOnline_WpStats::get_instance();
|
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.87.
|
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.87.6
|
7 |
Author: Lester 'GaMerZ' Chan
|
8 |
Author URI: https://lesterchan.net
|
9 |
Text Domain: wp-useronline
|