WP-UserOnline - Version 2.87.4

Version Description

Download this release

Release Info

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

Code changes from version 2.87.3 to 2.87.4

Files changed (5) hide show
  1. bots.php +23 -0
  2. readme.txt +7 -2
  3. scb/AdminPage.php +4 -24
  4. scb/Options.php +2 -1
  5. wp-useronline.php +1 -1
bots.php CHANGED
@@ -4,6 +4,7 @@ function useronline_get_bots() {
4
  $bots = array(
5
  '360Spider' => '360spider',
6
  'AddThis' => 'addthis',
 
7
  'Ahrefs' => 'ahrefsbot',
8
  'Alex' => 'ia_archiver',
9
  'AllTheWeb' => 'fast-webcrawler',
@@ -13,19 +14,27 @@ function useronline_get_bots() {
13
  'Apple' => 'applebot',
14
  'Archive.org' => 'archive.org_bot',
15
  'Ask Jeeves' => 'jeeves',
 
 
16
  'Baidu' => 'baidu',
17
  'Become.com' => 'become.com',
18
  'Bing' => 'bingbot',
19
  'Bing Preview' => 'bingpreview',
 
20
  'BLEXBot' => 'blexbot',
21
  'Bloglines' => 'bloglines',
22
  'Blog Search Engine' => 'blogsearch',
23
  'BUbiNG' => 'bubing',
 
24
  'CCBot' => 'ccbot',
25
  'CFNetwork' => 'cfnetwork',
26
  'Cliqzbot' => 'cliqzbot',
 
27
  'Crawl' => 'crawl',
28
  'Curl' => 'Curl',
 
 
 
29
  'DotBot' => 'dotbot',
30
  'DuckDuckGo' => 'duckduckbot',
31
  'EveryoneSocialBot' => 'everyonesocialbot',
@@ -39,6 +48,8 @@ function useronline_get_bots() {
39
  'Gais' => 'gaisbo',
40
  'Gigabot' => 'gigabot',
41
  'Gluten Free' => 'gluten free crawler',
 
 
42
  'Google' => 'google',
43
  'Grid' => 'gridbot',
44
  'GroupHigh' => 'grouphigh',
@@ -50,18 +61,23 @@ function useronline_get_bots() {
50
  'KomodiaBot' => 'komodiabot',
51
  'Konqueror' => 'konqueror',
52
  'Lindex' => 'linkdexbot',
 
53
  'Linkfluence' => 'linkfluence',
54
  'Lycos' => 'lycos',
55
  'Maui' => 'mauibot',
56
  'Mediatoolkit' => 'mediatoolkitbot',
 
 
57
  'MetaURI' => 'metauri',
58
  'MJ12bot' => 'mj12bot',
59
  'MojeekBot' => 'mojeekBot',
60
  'Moreover' => 'moreover',
61
  'MSN' => 'msnbot',
62
  'NBot' => 'nbot',
 
63
  'oBot' => 'oBot',
64
  'NextLinks' => 'findlinks',
 
65
  'PaperLiBot' => 'paperliBot',
66
  'PhantomJS' => 'phantomjs',
67
  'Proximic' => 'proximic',
@@ -69,18 +85,25 @@ function useronline_get_bots() {
69
  'Qwantify' => 'qwantify',
70
  'Radian6' => 'radian6',
71
  'RadioUserland' => 'userland',
 
72
  'Moz' => 'rogerbot',
 
 
73
  'SEOkicks' => 'seokicks-robot',
74
  'SemrushBot' => 'semrushbot',
 
75
  'Seznam' => 'seznam',
 
76
  'SiteExplorer' => 'siteexplorer',
77
  'Slurp' => 'slurp',
 
78
  'Sogou' => 'Sogou',
79
  'OpenLinkProfiler.org' => 'spbot',
80
  'SurveyBot' => 'surveybot',
81
  'Syndic8' => 'syndic8',
82
  'Technorati' => 'technorati',
83
  'TelegramBot' => 'telegrambot',
 
84
  'TraceMyFile' => 'tracemyfile',
85
  'Trendsmap' => 'trendsmap',
86
  'Turnitin.com' => 'turnitinbot',
4
  $bots = array(
5
  '360Spider' => '360spider',
6
  'AddThis' => 'addthis',
7
+ 'AHC' => 'AHC',
8
  'Ahrefs' => 'ahrefsbot',
9
  'Alex' => 'ia_archiver',
10
  'AllTheWeb' => 'fast-webcrawler',
14
  'Apple' => 'applebot',
15
  'Archive.org' => 'archive.org_bot',
16
  'Ask Jeeves' => 'jeeves',
17
+ 'Aspiegel' => 'AspiegelBot',
18
+ 'Axios' => 'axios',
19
  'Baidu' => 'baidu',
20
  'Become.com' => 'become.com',
21
  'Bing' => 'bingbot',
22
  'Bing Preview' => 'bingpreview',
23
+ 'Blackboard' => 'Blackboard',
24
  'BLEXBot' => 'blexbot',
25
  'Bloglines' => 'bloglines',
26
  'Blog Search Engine' => 'blogsearch',
27
  'BUbiNG' => 'bubing',
28
+ 'Buck' => 'Buck',
29
  'CCBot' => 'ccbot',
30
  'CFNetwork' => 'cfnetwork',
31
  'Cliqzbot' => 'cliqzbot',
32
+ 'Coccoc' => 'coccocbot',
33
  'Crawl' => 'crawl',
34
  'Curl' => 'Curl',
35
+ 'Cyotek' => 'Cyotek',
36
+ 'Daum' => 'Daum',
37
+ 'Dispatch' => 'Dispatch',
38
  'DotBot' => 'dotbot',
39
  'DuckDuckGo' => 'duckduckbot',
40
  'EveryoneSocialBot' => 'everyonesocialbot',
48
  'Gais' => 'gaisbo',
49
  'Gigabot' => 'gigabot',
50
  'Gluten Free' => 'gluten free crawler',
51
+ 'Go-http-client' => 'Go-http-client',
52
+ 'Goforit' => 'GOFORITBOT',
53
  'Google' => 'google',
54
  'Grid' => 'gridbot',
55
  'GroupHigh' => 'grouphigh',
61
  'KomodiaBot' => 'komodiabot',
62
  'Konqueror' => 'konqueror',
63
  'Lindex' => 'linkdexbot',
64
+ 'Linguee' => 'Linguee',
65
  'Linkfluence' => 'linkfluence',
66
  'Lycos' => 'lycos',
67
  'Maui' => 'mauibot',
68
  'Mediatoolkit' => 'mediatoolkitbot',
69
+ 'MegaIndex' => 'MegaIndex',
70
+ 'MetaFeedly' => 'MetaFeedly',
71
  'MetaURI' => 'metauri',
72
  'MJ12bot' => 'mj12bot',
73
  'MojeekBot' => 'mojeekBot',
74
  'Moreover' => 'moreover',
75
  'MSN' => 'msnbot',
76
  'NBot' => 'nbot',
77
+ 'Node-Fetch' => 'node-fetch',
78
  'oBot' => 'oBot',
79
  'NextLinks' => 'findlinks',
80
+ 'Panscient' => 'panscient.com',
81
  'PaperLiBot' => 'paperliBot',
82
  'PhantomJS' => 'phantomjs',
83
  'Proximic' => 'proximic',
85
  'Qwantify' => 'qwantify',
86
  'Radian6' => 'radian6',
87
  'RadioUserland' => 'userland',
88
+ 'RyteBot' => 'RyteBot',
89
  'Moz' => 'rogerbot',
90
+ 'Qwantify' => 'Qwantify',
91
+ 'Screaming Frog SEO Spider' => 'Screaming Frog SEO Spider',
92
  'SEOkicks' => 'seokicks-robot',
93
  'SemrushBot' => 'semrushbot',
94
+ 'SerendeputyBot' => 'serendeputybot',
95
  'Seznam' => 'seznam',
96
+ 'SirdataBot ' => 'SirdataBot ',
97
  'SiteExplorer' => 'siteexplorer',
98
  'Slurp' => 'slurp',
99
+ 'SMTBot' => 'SMTBot',
100
  'Sogou' => 'Sogou',
101
  'OpenLinkProfiler.org' => 'spbot',
102
  'SurveyBot' => 'surveybot',
103
  'Syndic8' => 'syndic8',
104
  'Technorati' => 'technorati',
105
  'TelegramBot' => 'telegrambot',
106
+ 'Thither' => 'thither',
107
  'TraceMyFile' => 'tracemyfile',
108
  'Trendsmap' => 'trendsmap',
109
  'Turnitin.com' => 'turnitinbot',
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.2
7
- Stable tag: 2.87.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -88,6 +88,11 @@ 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.87.3
92
  * FIXED: Duplicated Settings Saved admin_notices
93
  * FIXED: Missing arrow
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.4
7
+ Stable tag: 2.87.4
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.87.4
92
+ * NEW: Bump to WordPress 5.4
93
+ * NEW: Added more bots
94
+ * FIXED: Update SCB Framework To Remove contextual_help
95
+
96
  ### 2.87.3
97
  * FIXED: Duplicated Settings Saved admin_notices
98
  * FIXED: Missing arrow
scb/AdminPage.php CHANGED
@@ -133,7 +133,6 @@ abstract class scbAdminPage {
133
  }
134
 
135
  add_action( 'admin_menu', array( $this, 'page_init' ), $this->args['admin_action_priority'] );
136
- add_filter( 'contextual_help', array( $this, '_contextual_help' ), 10, 2 );
137
 
138
  if ( $file ) {
139
  $this->file = $file;
@@ -529,28 +528,6 @@ abstract class scbAdminPage {
529
  }
530
  }
531
 
532
- /**
533
- * Adds contextual help.
534
- *
535
- * @param string $help
536
- * @param string|object $screen
537
- *
538
- * @return string
539
- */
540
- public function _contextual_help( $help, $screen ) {
541
- if ( is_object( $screen ) ) {
542
- $screen = $screen->id;
543
- }
544
-
545
- $actual_help = $this->page_help();
546
-
547
- if ( $screen == $this->pagehook && $actual_help ) {
548
- return $actual_help;
549
- }
550
-
551
- return $help;
552
- }
553
-
554
  /**
555
  * Displays page content.
556
  *
@@ -570,6 +547,10 @@ abstract class scbAdminPage {
570
  * @return array
571
  */
572
  public function _action_link( $links ) {
 
 
 
 
573
  $url = add_query_arg( 'page', $this->args['page_slug'], admin_url( $this->args['parent'] ) );
574
 
575
  $links[] = html_link( $url, $this->args['action_link'] );
@@ -577,4 +558,3 @@ abstract class scbAdminPage {
577
  return $links;
578
  }
579
  }
580
-
133
  }
134
 
135
  add_action( 'admin_menu', array( $this, 'page_init' ), $this->args['admin_action_priority'] );
 
136
 
137
  if ( $file ) {
138
  $this->file = $file;
528
  }
529
  }
530
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
531
  /**
532
  * Displays page content.
533
  *
547
  * @return array
548
  */
549
  public function _action_link( $links ) {
550
+ if ( ! is_array( $links ) ) {
551
+ $links = array();
552
+ }
553
+
554
  $url = add_query_arg( 'page', $this->args['page_slug'], admin_url( $this->args['parent'] ) );
555
 
556
  $links[] = html_link( $url, $this->args['action_link'] );
558
  return $links;
559
  }
560
  }
 
scb/Options.php CHANGED
@@ -59,7 +59,8 @@ class scbOptions {
59
  * @return mixed Whatever is in those fields.
60
  */
61
  public function get( $field = null, $default = null ) {
62
- $data = array_merge( $this->defaults, get_option( $this->key, array() ) );
 
63
 
64
  return scbForms::get_value( $field, $data, $default );
65
  }
59
  * @return mixed Whatever is in those fields.
60
  */
61
  public function get( $field = null, $default = null ) {
62
+ $current_options = get_option( $this->key, array() );
63
+ $data = array_merge( $this->defaults, is_array( $current_options ) ? $current_options : array() );
64
 
65
  return scbForms::get_value( $field, $data, $default );
66
  }
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.3
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.4
7
  Author: Lester 'GaMerZ' Chan
8
  Author URI: https://lesterchan.net
9
  Text Domain: wp-useronline