Simple History - Version 2.0.5

Version Description

(November 2014) =

  • Fix undefined variable in plugin logger. Fixes https://wordpress.org/support/topic/simple-history-201-is-not-working?replies=8#post-6343684.
  • Made the dashboard smaller
  • Misc other small GUI changes
Download this release

Release Info

Developer eskapism
Plugin Icon 128x128 Simple History
Version 2.0.5
Comparing to
See all releases

Code changes from version 2.0.4 to 2.0.5

SimpleHistory.php CHANGED
@@ -6,7 +6,7 @@
6
  class SimpleHistory {
7
 
8
  const NAME = "Simple History";
9
- const VERSION = "2.0.4";
10
 
11
  /**
12
  * Capability required to view the history log
@@ -679,7 +679,7 @@ class SimpleHistory {
679
 
680
  if ( $this->setting_show_on_dashboard() && current_user_can($this->view_history_capability) ) {
681
 
682
- wp_add_dashboard_widget("simple_history_dashboard_widget", __("History", 'simple-history'), array($this, "dashboard_widget_output"));
683
 
684
  }
685
  }
6
  class SimpleHistory {
7
 
8
  const NAME = "Simple History";
9
+ const VERSION = "2.0.5";
10
 
11
  /**
12
  * Capability required to view the history log
679
 
680
  if ( $this->setting_show_on_dashboard() && current_user_can($this->view_history_capability) ) {
681
 
682
+ wp_add_dashboard_widget("simple_history_dashboard_widget", __("Simple History", 'simple-history'), array($this, "dashboard_widget_output"));
683
 
684
  }
685
  }
css/styles.css CHANGED
@@ -248,6 +248,8 @@ Style different log levels.
248
 
249
  .SimpleHistoryLogitem__senderImage img {
250
  display: block;
 
 
251
  }
252
 
253
  .SimpleHistoryLogitem__secondcol {
@@ -462,35 +464,77 @@ when occasions are added
462
  border-top-width : 1px;
463
  border-bottom-width : 1px;
464
  padding-top: 15px;
465
- padding-bottom: 15px
466
- /*padding-left: 40px;*/
467
  }
468
 
469
 
470
- /* customizations for the dashboard */
471
- .postbox .SimpleHistoryLogitems {
472
- border: none;
473
- }
474
 
475
- .postbox .SimpleHistoryLogitem {
476
- /*padding-top: 10px;
477
- padding-bottom: 10px;*/
478
  }
 
 
 
 
479
 
480
- #simple_history_dashboard_widget .inside {
481
- padding: 0;
482
- margin-top: 0;
483
- }
 
484
 
485
- .postbox .SimpleHistoryLogitem__text {
486
- font-size: 1em;
487
- }
488
 
489
- /*
490
- .postbox .SimpleHistoryLogitem__details {
491
- display: none;
492
- }
493
- */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
494
 
495
  /* // end dashboard */
496
 
@@ -739,19 +783,14 @@ Modal window with detailss
739
  font-size: 16px;
740
  }
741
 
742
- .SimpleHistoryQuickStats a {
743
- text-decoration: none;
744
- }
745
-
746
- /* in dashboard add margin and smaller fonts */
747
- .postbox .SimpleHistoryQuickStats {
748
- margin-left: 13px;
749
- margin-right: 13px;
750
- font-size: 14px;
751
  }
752
 
753
- .postbox .SimpleHistoryQuickStats p {
754
- font-size: 14px;
755
  }
756
 
757
  /* icon on log page*/
@@ -759,6 +798,7 @@ Modal window with detailss
759
  font-size: 24px;
760
  line-height: 30px;
761
  width: 24px;
 
762
  }
763
 
764
  /* if not hits when using filter function */
248
 
249
  .SimpleHistoryLogitem__senderImage img {
250
  display: block;
251
+ max-width: 100%;
252
+ max-height: 100%;
253
  }
254
 
255
  .SimpleHistoryLogitem__secondcol {
464
  border-top-width : 1px;
465
  border-bottom-width : 1px;
466
  padding-top: 15px;
467
+ padding-bottom: 15px;
 
468
  }
469
 
470
 
471
+ /*
472
+ customizations for the dashboard
473
+ i.e. the log is inside a .postbox element
474
+ */
475
 
476
+ .postbox {
 
 
477
  }
478
+ #simple_history_dashboard_widget .inside {
479
+ padding: 0;
480
+ margin-top: 0;
481
+ }
482
 
483
+ .postbox .SimpleHistoryQuickStats {
484
+ margin-left: 13px;
485
+ margin-right: 13px;
486
+ font-size: 14px;
487
+ }
488
 
489
+ .postbox .SimpleHistoryQuickStats p {
490
+ font-size: 14px;
491
+ }
492
 
493
+ .postbox .SimpleHistoryLogitems {
494
+ border: none;
495
+ }
496
+
497
+ .postbox .SimpleHistoryLogitem {
498
+ padding: 12px 5px 12px 16px;
499
+ }
500
+
501
+ .postbox .SimpleHistoryLogitem:first-child {
502
+ padding-top: 0;
503
+ }
504
+
505
+ .postbox .SimpleHistoryLogitem::before {
506
+ left: 55px;
507
+ }
508
+
509
+ .postbox .SimpleHistoryLogitem__senderImage {
510
+ width: 24px;
511
+ height: 24px;;
512
+ }
513
+
514
+ .postbox .SimpleHistoryLogitem__secondcol {
515
+ margin-left: 40px;
516
+ }
517
+
518
+ .postbox .SimpleHistoryLogitem__text {
519
+ font-size: 1em;
520
+ }
521
+
522
+ .postbox .SimpleHistoryLogitem__details p {
523
+ margin-top: 0;
524
+ margin-bottom: 0;
525
+ }
526
+
527
+ .postbox .SimpleHistoryLogitem__text,
528
+ .postbox .SimpleHistoryLogitem__details,
529
+ .postbox .SimpleHistoryLogitem__details p {
530
+ line-height: 1.1;
531
+ }
532
+
533
+ /*
534
+ .postbox .SimpleHistoryLogitem__details {
535
+ display: none;
536
+ }
537
+ */
538
 
539
  /* // end dashboard */
540
 
783
  font-size: 16px;
784
  }
785
 
786
+ .SimpleHistoryQuickStats p {
787
+ line-height: 1;
788
+ margin-top: 1em;
789
+ margin-bottom: 1em;
 
 
 
 
 
790
  }
791
 
792
+ .SimpleHistoryQuickStats a {
793
+ text-decoration: none;
794
  }
795
 
796
  /* icon on log page*/
798
  font-size: 24px;
799
  line-height: 30px;
800
  width: 24px;
801
+ color: rgb(63, 147, 73);
802
  }
803
 
804
  /* if not hits when using filter function */
loggers/SimplePluginLogger.php CHANGED
@@ -479,18 +479,11 @@ class SimplePluginLogger extends SimpleLogger
479
  $plugin_data = get_plugin_data( WP_PLUGIN_DIR . '/' . $arr_data["plugin"] );
480
 
481
  // autoptimize/autoptimize.php
482
-
483
  $plugin_slug = dirname( $arr_data["plugin"] );
484
 
485
- /*
486
- @TODO
487
- efter update:
488
- Undefined variable: update_plugins
489
- */
490
  $context = array(
491
  "plugin_slug" => $plugin_slug,
492
  "request" => $this->simpleHistory->json_encode( $_REQUEST ),
493
- "update_plugins" => $this->simpleHistory->json_encode( $update_plugins ),
494
  "plugin_name" => $plugin_data["Name"],
495
  "plugin_title" => $plugin_data["Title"],
496
  "plugin_description" => $plugin_data["Description"],
@@ -502,7 +495,7 @@ Undefined variable: update_plugins
502
 
503
  // update status for plugins are in response
504
  // plugin folder + index file = key
505
- // use this transient to get url and package
506
  $update_plugins = get_site_transient( 'update_plugins' );
507
  if ( $update_plugins && isset( $update_plugins->response[ $arr_data["plugin"] ] ) ) {
508
 
@@ -517,6 +510,8 @@ Undefined variable: update_plugins
517
  "package": "https://downloads.wordpress.org/plugin/autoptimize.1.9.1.zip"
518
  }
519
  */
 
 
520
 
521
  $plugin_update_info = $update_plugins->response[ $arr_data["plugin"] ];
522
 
479
  $plugin_data = get_plugin_data( WP_PLUGIN_DIR . '/' . $arr_data["plugin"] );
480
 
481
  // autoptimize/autoptimize.php
 
482
  $plugin_slug = dirname( $arr_data["plugin"] );
483
 
 
 
 
 
 
484
  $context = array(
485
  "plugin_slug" => $plugin_slug,
486
  "request" => $this->simpleHistory->json_encode( $_REQUEST ),
 
487
  "plugin_name" => $plugin_data["Name"],
488
  "plugin_title" => $plugin_data["Title"],
489
  "plugin_description" => $plugin_data["Description"],
495
 
496
  // update status for plugins are in response
497
  // plugin folder + index file = key
498
+ // use transient to get url and package
499
  $update_plugins = get_site_transient( 'update_plugins' );
500
  if ( $update_plugins && isset( $update_plugins->response[ $arr_data["plugin"] ] ) ) {
501
 
510
  "package": "https://downloads.wordpress.org/plugin/autoptimize.1.9.1.zip"
511
  }
512
  */
513
+ // for debug purposes the update_plugins key can be added
514
+ // $context["update_plugins"] = $this->simpleHistory->json_encode( $update_plugins );
515
 
516
  $plugin_update_info = $update_plugins->response[ $arr_data["plugin"] ];
517
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: eskapism
3
  Donate link: http://eskapism.se/sida/donate/
4
  Tags: history, log, changes, changelog, audit, trail, pages, attachments, users, cms, dashboard, admin, syslog, feed, activity, stream
5
  Requires at least: 3.6.0
6
- Tested up to: 4.0.1
7
- Stable tag: 2.0.4
8
 
9
  View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
10
 
@@ -104,6 +104,12 @@ initiated by a specific user.
104
 
105
  == Changelog ==
106
 
 
 
 
 
 
 
107
  = 2.0.4 (November 2014) =
108
 
109
  - Make messages for manually updated plugins and bulk updated plugins more similar
3
  Donate link: http://eskapism.se/sida/donate/
4
  Tags: history, log, changes, changelog, audit, trail, pages, attachments, users, cms, dashboard, admin, syslog, feed, activity, stream
5
  Requires at least: 3.6.0
6
+ Tested up to: 4.1
7
+ Stable tag: 2.0.5
8
 
9
  View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
10
 
104
 
105
  == Changelog ==
106
 
107
+ = 2.0.5 (November 2014) =
108
+
109
+ - Fix undefined variable in plugin logger. Fixes https://wordpress.org/support/topic/simple-history-201-is-not-working?replies=8#post-6343684.
110
+ - Made the dashboard smaller
111
+ - Misc other small GUI changes
112
+
113
  = 2.0.4 (November 2014) =
114
 
115
  - Make messages for manually updated plugins and bulk updated plugins more similar