Simple History - Version 2.34.0

Version Description

Download this release

Release Info

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

Code changes from version 2.33.2 to 2.34.0

code.md CHANGED
@@ -1,6 +1,6 @@
1
  Since I always forget what standards I use in different projects this file is here to remind me about the standards I use in this project:
2
 
3
- - PHP coding standard: PSR2 because that's the standard that I use in other projects.
4
  `phpcs.xml.dist` is the config used.
5
 
6
  - Formatting:
@@ -10,6 +10,11 @@ Since I always forget what standards I use in different projects this file is he
10
  - phpcs to lint while editing. Lots of code is old but working but was written
11
  before my editor had nice linting, so much of the code does not lint. This will be fixed.
12
 
 
 
 
 
 
13
  ## How to use php codesniffer
14
 
15
  List errors and warnings:
1
  Since I always forget what standards I use in different projects this file is here to remind me about the standards I use in this project:
2
 
3
+ - PHP coding standard: [PSR12()] because that's the standard that I use in other projects.
4
  `phpcs.xml.dist` is the config used.
5
 
6
  - Formatting:
10
  - phpcs to lint while editing. Lots of code is old but working but was written
11
  before my editor had nice linting, so much of the code does not lint. This will be fixed.
12
 
13
+ ## How to use in Visual Studio Code
14
+
15
+ - Run `composer install`
16
+ - Install plugin https://marketplace.visualstudio.com/items?itemName=ValeryanM.vscode-phpsab
17
+
18
  ## How to use php codesniffer
19
 
20
  List errors and warnings:
composer.json CHANGED
@@ -10,12 +10,12 @@
10
  "homepage": "http://simple-history.com/",
11
  "minimum-stability": "dev",
12
  "require-dev": {
13
- "squizlabs/php_codesniffer": "3.*"
14
  },
15
  "require": {
16
  "php": ">=5.2.0"
17
  },
18
- "version": "2.33",
19
  "authors": [
20
  {
21
  "name": "Pär Thernström",
10
  "homepage": "http://simple-history.com/",
11
  "minimum-stability": "dev",
12
  "require-dev": {
13
+ "squizlabs/php_codesniffer": "^3.5"
14
  },
15
  "require": {
16
  "php": ">=5.2.0"
17
  },
18
+ "version": "2.33.2",
19
  "authors": [
20
  {
21
  "name": "Pär Thernström",
composer.lock CHANGED
@@ -4,7 +4,7 @@
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
  "This file is @generated automatically"
6
  ],
7
- "content-hash": "3b8dfbd08d71ac09ed083ecf8002d083",
8
  "packages": [],
9
  "packages-dev": [
10
  {
@@ -13,12 +13,12 @@
13
  "source": {
14
  "type": "git",
15
  "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
16
- "reference": "451a256c34e46ab346ee2b3d706e42eecb03223b"
17
  },
18
  "dist": {
19
  "type": "zip",
20
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/451a256c34e46ab346ee2b3d706e42eecb03223b",
21
- "reference": "451a256c34e46ab346ee2b3d706e42eecb03223b",
22
  "shasum": ""
23
  },
24
  "require": {
@@ -56,18 +56,17 @@
56
  "phpcs",
57
  "standards"
58
  ],
59
- "time": "2019-10-03T04:52:04+00:00"
60
  }
61
  ],
62
  "aliases": [],
63
  "minimum-stability": "dev",
64
- "stability-flags": {
65
- "squizlabs/php_codesniffer": 20
66
- },
67
  "prefer-stable": false,
68
  "prefer-lowest": false,
69
  "platform": {
70
  "php": ">=5.2.0"
71
  },
72
- "platform-dev": []
 
73
  }
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
  "This file is @generated automatically"
6
  ],
7
+ "content-hash": "2b65e6c117e9f812e13934ba2a32be21",
8
  "packages": [],
9
  "packages-dev": [
10
  {
13
  "source": {
14
  "type": "git",
15
  "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
16
+ "reference": "75ff420b23c0866c99c350099381a93b8602ebe6"
17
  },
18
  "dist": {
19
  "type": "zip",
20
+ "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/75ff420b23c0866c99c350099381a93b8602ebe6",
21
+ "reference": "75ff420b23c0866c99c350099381a93b8602ebe6",
22
  "shasum": ""
23
  },
24
  "require": {
56
  "phpcs",
57
  "standards"
58
  ],
59
+ "time": "2020-05-21T06:41:29+00:00"
60
  }
61
  ],
62
  "aliases": [],
63
  "minimum-stability": "dev",
64
+ "stability-flags": [],
 
 
65
  "prefer-stable": false,
66
  "prefer-lowest": false,
67
  "platform": {
68
  "php": ">=5.2.0"
69
  },
70
+ "platform-dev": [],
71
+ "plugin-api-version": "1.1.0"
72
  }
css/styles.css CHANGED
@@ -47,9 +47,7 @@ The spinner that wp uses:;
47
  /* on its own page */
48
  /*.dashboard_page_simple_history_page .SimpleHistoryLogitemsWrap {*/
49
  .SimpleHistoryGuiWrap {
50
- /*float: left;*/
51
  position: relative;
52
- margin-right: 340px;
53
  min-height: 200px;
54
  background-color: rgba(255, 255, 255, 0.75);
55
  }
@@ -60,16 +58,21 @@ The spinner that wp uses:;
60
 
61
  .SimpleHistoryGuiWrap .SimpleHistoryGui {
62
  width: 100%;
63
- float: left;
64
  }
65
 
66
- @media only screen and (max-width: 850px) {
67
  .SimpleHistoryGuiWrap {
68
- float: none;
69
- margin-right: auto;
70
- }
71
- .SimpleHistoryGui {
72
- float: none;
 
 
 
 
 
 
73
  }
74
  }
75
 
@@ -550,11 +553,8 @@ i.e. the log is inside a .postbox element
550
  line-height: 1.5;
551
  }
552
 
553
- .postbox .SimpleHistoryPaginationLink,
554
  .postbox .SimpleHistoryPaginationCurrentPage {
555
- font-size: 13px;
556
- line-height: 19px;
557
- height: 24px;
558
  }
559
 
560
  /*
@@ -599,18 +599,15 @@ Pagination, below logRows
599
  padding-bottom: 8px;
600
  }
601
 
602
- .SimpleHistoryPaginationLink.SimpleHistoryPaginationLink {
603
- /*line-height: 30px;*/
604
- /*background: rgb(238, 238, 238);*/
605
- /*background: rgba(0, 0, 0, 0.05);*/
606
- /*padding: 0 10px 3px;
607
- text-decoration: none;*/
608
- font-size: 16px;
609
- }
610
-
611
- .SimpleHistoryPaginationLink.SimpleHistoryPaginationLink:hover {
612
- /*color: rgb(255, 255, 255);*/
613
- /*background: rgb(46, 162, 204);*/
614
  }
615
 
616
  .SimpleHistoryPaginationLink.SimpleHistoryPaginationLink.disabled {
@@ -621,8 +618,13 @@ Pagination, below logRows
621
  }
622
 
623
  .SimpleHistoryPaginationCurrentPage {
624
- /*padding-top: 0;*/
625
- text-align: center;
 
 
 
 
 
626
  }
627
 
628
  /*
47
  /* on its own page */
48
  /*.dashboard_page_simple_history_page .SimpleHistoryLogitemsWrap {*/
49
  .SimpleHistoryGuiWrap {
 
50
  position: relative;
 
51
  min-height: 200px;
52
  background-color: rgba(255, 255, 255, 0.75);
53
  }
58
 
59
  .SimpleHistoryGuiWrap .SimpleHistoryGui {
60
  width: 100%;
 
61
  }
62
 
63
+ @media only screen and (min-width: 960px) {
64
  .SimpleHistoryGuiWrap {
65
+ display: -webkit-box;
66
+ display: -ms-flexbox;
67
+ display: flex;
68
+ -ms-flex-wrap: nowrap;
69
+ flex-wrap: nowrap;
70
+ -webkit-box-align: start;
71
+ -ms-flex-align: start;
72
+ align-items: flex-start;
73
+ -webkit-box-pack: justify;
74
+ -ms-flex-pack: justify;
75
+ justify-content: space-between;
76
  }
77
  }
78
 
553
  line-height: 1.5;
554
  }
555
 
 
556
  .postbox .SimpleHistoryPaginationCurrentPage {
557
+ vertical-align: top;
 
 
558
  }
559
 
560
  /*
599
  padding-bottom: 8px;
600
  }
601
 
602
+ .SimpleHistoryPaginationLinks .SimpleHistoryPaginationLink {
603
+ vertical-align: baseline;
604
+ min-width: 30px;
605
+ min-height: 30px;
606
+ margin: 0;
607
+ padding: 0 4px;
608
+ font-size: 16px;
609
+ line-height: 1.625;
610
+ text-align: center;
 
 
 
611
  }
612
 
613
  .SimpleHistoryPaginationLink.SimpleHistoryPaginationLink.disabled {
618
  }
619
 
620
  .SimpleHistoryPaginationCurrentPage {
621
+ margin: 0 2px 0 0;
622
+ font-size: 13px;
623
+ text-align: center;
624
+ }
625
+
626
+ .SimpleHistoryPaginationInput .total-pages {
627
+ margin-right: 2px;
628
  }
629
 
630
  /*
dropins/SimpleHistorySidebarDropin.css CHANGED
@@ -1,14 +1,11 @@
1
- .SimpleHistory__pageSidebar {
2
- float: right;
3
- width: 300px;
4
- margin-right: -340px;
5
- }
6
-
7
- @media only screen and (max-width: 850px) {
8
  .SimpleHistory__pageSidebar {
 
 
 
 
9
  width: 100%;
10
- margin-right: auto;
11
- margin-top: 20px;
12
  }
13
  }
14
 
1
+ @media only screen and (min-width: 960px) {
 
 
 
 
 
 
2
  .SimpleHistory__pageSidebar {
3
+ -webkit-box-flex: 0;
4
+ -ms-flex: 0 0 25%;
5
+ flex: 0 0 25%;
6
+ max-width: 25%;
7
  width: 100%;
8
+ padding-left: 1rem;
 
9
  }
10
  }
11
 
index.php CHANGED
@@ -5,7 +5,7 @@
5
  * Text Domain: simple-history
6
  * Domain Path: /languages
7
  * Description: Plugin that logs various things that occur in WordPress and then presents those events in a very nice GUI.
8
- * Version: 2.33.2
9
  * Author: Pär Thernström
10
  * Author URI: http://simple-history.com/
11
  * License: GPL2
@@ -46,7 +46,7 @@ if ($ok_php_version && $ok_wp_version) {
46
  */
47
 
48
  if (!defined('SIMPLE_HISTORY_VERSION')) {
49
- define('SIMPLE_HISTORY_VERSION', '2.33.2');
50
  }
51
 
52
  if (!defined('SIMPLE_HISTORY_PATH')) {
5
  * Text Domain: simple-history
6
  * Domain Path: /languages
7
  * Description: Plugin that logs various things that occur in WordPress and then presents those events in a very nice GUI.
8
+ * Version: 2.34.0
9
  * Author: Pär Thernström
10
  * Author URI: http://simple-history.com/
11
  * License: GPL2
46
  */
47
 
48
  if (!defined('SIMPLE_HISTORY_VERSION')) {
49
+ define('SIMPLE_HISTORY_VERSION', '2.34.0');
50
  }
51
 
52
  if (!defined('SIMPLE_HISTORY_PATH')) {
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: eskapism
3
  Donate link: https://www.paypal.me/eskapism
4
  Tags: history, log, changes, changelog, audit, audit log, event log, user tracking, trail, pages, attachments, users, dashboard, admin, syslog, feed, activity, stream, audit trail, brute-force
5
  Requires at least: 5.2
6
- Tested up to: 5.2
7
  Requires PHP: 5.6
8
- Stable tag: 2.33.2
9
 
10
  View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
11
 
@@ -191,13 +191,27 @@ Events in the log are stored for 60 days by default. Events older than this will
191
 
192
  ## Changelog
193
 
 
 
 
 
 
 
 
 
 
 
 
194
  = 2.33.2 (January 2020) =
 
195
  - Fix history displaying blank white space on smaller screens. Fixes https://wordpress.org/support/topic/viewing-the-log-on-a-iphone/.
196
 
197
  = 2.33.1 (January 2020) =
 
198
  - Was just an internal test version.
199
 
200
  = 2.33 (November 2019) =
 
201
  - Better compatibility with the Gutenberg Block editor.
202
  - Correct URL redirected to after clearing log. Fixes #123.
203
  - Fix history log on dashboard leaving lots of white space and sometimes overlapping other dashboard widgets.
@@ -205,7 +219,7 @@ Events in the log are stored for 60 days by default. Events older than this will
205
  - Fix join parameter order for PHP 7.4.
206
  - Update donate link. It's now https://www.paypal.me/eskapism.
207
  If you like the plugin please consider donate.
208
- A very small amount makes me much more happy than nothing at all! ;)
209
 
210
  = 2.32 (August 2019) =
211
 
3
  Donate link: https://www.paypal.me/eskapism
4
  Tags: history, log, changes, changelog, audit, audit log, event log, user tracking, trail, pages, attachments, users, dashboard, admin, syslog, feed, activity, stream, audit trail, brute-force
5
  Requires at least: 5.2
6
+ Tested up to: 5.4
7
  Requires PHP: 5.6
8
+ Stable tag: 2.34.0
9
 
10
  View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
11
 
191
 
192
  ## Changelog
193
 
194
+ ### [Unreleased]
195
+
196
+ = 2.34 (January 2020) =
197
+
198
+ **Changed**
199
+
200
+ - Use flexbox for history page layout, so if all dropins are disabled then the content area
201
+ spans the entire 100 % width (#199).
202
+
203
+ - Adjust style of pagination to match WordPress core pagination.
204
+
205
  = 2.33.2 (January 2020) =
206
+
207
  - Fix history displaying blank white space on smaller screens. Fixes https://wordpress.org/support/topic/viewing-the-log-on-a-iphone/.
208
 
209
  = 2.33.1 (January 2020) =
210
+
211
  - Was just an internal test version.
212
 
213
  = 2.33 (November 2019) =
214
+
215
  - Better compatibility with the Gutenberg Block editor.
216
  - Correct URL redirected to after clearing log. Fixes #123.
217
  - Fix history log on dashboard leaving lots of white space and sometimes overlapping other dashboard widgets.
219
  - Fix join parameter order for PHP 7.4.
220
  - Update donate link. It's now https://www.paypal.me/eskapism.
221
  If you like the plugin please consider donate.
222
+ A very small amount makes me much more happy than nothing at all! ;)
223
 
224
  = 2.32 (August 2019) =
225