Simple Login Log - Version 0.8

Version Description

Download this release

Release Info

Developer maxchirkov
Plugin Icon wp plugin Simple Login Log
Version 0.8
Comparing to
See all releases

Code changes from version 0.7 to 0.8

Files changed (2) hide show
  1. readme.txt +5 -1
  2. simple-login-log.php +9 -7
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.ibsteam.net/donate
4
  Tags: login, log, users
5
  Requires at least: 3.0
6
  Tested up to: 3.3
7
- Stable tag: 0.7
8
 
9
  This plugin keeps a log of WordPress user logins. Offers user and date filtering, and export features.
10
 
@@ -40,6 +40,10 @@ Screen Options are available at the top of the Login Log page. Click on the *Sec
40
 
41
  == Changelog ==
42
 
 
 
 
 
43
  **Version 0.7**
44
 
45
  - Added user role filter via link. Filter will apply only to newly registered logins, because user roles weren't recorded in versions prior to v.0.6.
4
  Tags: login, log, users
5
  Requires at least: 3.0
6
  Tested up to: 3.3
7
+ Stable tag: 0.8
8
 
9
  This plugin keeps a log of WordPress user logins. Offers user and date filtering, and export features.
10
 
40
 
41
  == Changelog ==
42
 
43
+ **Version 0.8**
44
+
45
+ - Bug Fix: Columns' checkboxes weren't showing in Screen Options in WP 3.3.
46
+
47
  **Version 0.7**
48
 
49
  - Added user role filter via link. Filter will apply only to newly registered logins, because user roles weren't recorded in versions prior to v.0.6.
simple-login-log.php CHANGED
@@ -4,14 +4,14 @@
4
  Plugin URI: http://simplerealtytheme.com
5
  Description: This plugin keeps a log of WordPress user logins. Offers user filtering and export features.
6
  Author: Max Chirkov
7
- Version: 0.7
8
  Author URI: http://SimpleRealtyTheme.com
9
  */
10
 
11
  //TODO: add cleanup method on uninstall
12
 
13
  if( !class_exists( 'SimpleLoginLog' ) )
14
- {
15
  class SimpleLoginLog {
16
  private $db_ver = "1.2";
17
  public $table = 'simple_login_log';
@@ -121,8 +121,8 @@ if( !class_exists( 'SimpleLoginLog' ) )
121
  add_screen_option($per_page_field, $args);
122
  $_per_page = get_option('users_page_login_log_per_page');
123
 
124
- global $_wp_column_headers;
125
- $_wp_column_headers[ $current_screen->id ] = SLL_List_Table::get_columns();
126
  }
127
 
128
 
@@ -458,7 +458,7 @@ if( !class_exists( 'SimpleLoginLog' ) )
458
  function log_manager()
459
  {
460
 
461
- $log_table = new SLL_List_Table;
462
 
463
  $log_table->items = $this->log_get_data();
464
  $log_table->prepare_items();
@@ -632,7 +632,7 @@ class SLL_List_Table extends WP_List_Table
632
  //unset existing filter and pagination
633
  $args = wp_parse_args( parse_url($_SERVER["REQUEST_URI"], PHP_URL_QUERY) );
634
  unset($args['filter']);
635
- unset($args['paged']);
636
 
637
  switch($column_name){
638
  case 'id':
@@ -812,7 +812,7 @@ class SLL_List_Table extends WP_List_Table
812
  $columns = $this->get_columns();
813
  $hidden_cols = get_user_option( 'manage' . $screen->id . 'columnshidden' );
814
  $hidden = ( $hidden_cols ) ? $hidden_cols : array();
815
- $sortable = $this->get_sortable_columns();
816
 
817
 
818
  /**
@@ -822,7 +822,9 @@ class SLL_List_Table extends WP_List_Table
822
  * for sortable columns.
823
  */
824
  $this->_column_headers = array($columns, $hidden, $sortable);
 
825
 
 
826
  /**
827
  * Optional. You can handle your bulk actions however you see fit. In this
828
  * case, we'll handle them within our package just to keep things clean.
4
  Plugin URI: http://simplerealtytheme.com
5
  Description: This plugin keeps a log of WordPress user logins. Offers user filtering and export features.
6
  Author: Max Chirkov
7
+ Version: 0.8
8
  Author URI: http://SimpleRealtyTheme.com
9
  */
10
 
11
  //TODO: add cleanup method on uninstall
12
 
13
  if( !class_exists( 'SimpleLoginLog' ) )
14
+ {
15
  class SimpleLoginLog {
16
  private $db_ver = "1.2";
17
  public $table = 'simple_login_log';
121
  add_screen_option($per_page_field, $args);
122
  $_per_page = get_option('users_page_login_log_per_page');
123
 
124
+ //needs to be initialized early enough to pre-fill screen options section in the upper (hidden) area.
125
+ $this->log_table = new SLL_List_Table;
126
  }
127
 
128
 
458
  function log_manager()
459
  {
460
 
461
+ $log_table = $this->log_table;
462
 
463
  $log_table->items = $this->log_get_data();
464
  $log_table->prepare_items();
632
  //unset existing filter and pagination
633
  $args = wp_parse_args( parse_url($_SERVER["REQUEST_URI"], PHP_URL_QUERY) );
634
  unset($args['filter']);
635
+ unset($args['paged']);
636
 
637
  switch($column_name){
638
  case 'id':
812
  $columns = $this->get_columns();
813
  $hidden_cols = get_user_option( 'manage' . $screen->id . 'columnshidden' );
814
  $hidden = ( $hidden_cols ) ? $hidden_cols : array();
815
+ $sortable = $this->get_sortable_columns();
816
 
817
 
818
  /**
822
  * for sortable columns.
823
  */
824
  $this->_column_headers = array($columns, $hidden, $sortable);
825
+ $columns = get_column_headers( $screen );
826
 
827
+
828
  /**
829
  * Optional. You can handle your bulk actions however you see fit. In this
830
  * case, we'll handle them within our package just to keep things clean.