Skip to content

Commit

Permalink
Fix lesterchan#3. Add static in front of function to prevent strict w…
Browse files Browse the repository at this point in the history
…arnings
  • Loading branch information
lesterchan committed Feb 13, 2014
1 parent 5309c4b commit 88d4a7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: GamerZ, scribu
Tags: useronline, usersonline, wp-useronline, online, users, user, ajax, widget
Requires at least: 3.1
Tested up to: 3.5
Stable tag: trunk
Stable tag: 2.83
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -85,8 +85,10 @@ Make sure your host is running PHP 5. The only foolproof way to do this is to ad
## Changelog

### 2.83
* show user agent when hovering over IP, instead of address lookup
* Show user agent when hovering over IP, instead of address lookup
* Use local time for UserOnline Page
* Fixed 'Strict Standards: Non-static method' warnings
* Update scb Framework

### 2.82
* show most recent visitors first
Expand Down
4 changes: 1 addition & 3 deletions core.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,7 @@ private function clear_table() {
$wpdb->query( "DELETE FROM $wpdb->useronline" );
}

function ajax() {
global $wpdb;

static function ajax() {
$mode = trim( $_POST['mode'] );

$page_title = strip_tags( $_POST['page_title'] );
Expand Down

0 comments on commit 88d4a7c

Please sign in to comment.