Simple History - Version 2.21.1

Version Description

(May 2018) =

  • Make sure support for Advanced Custom Fields is activated for all users and not only for the developer of the plugin ;)
Download this release

Release Info

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

Code changes from version 2.21 to 2.21.1

Files changed (4) hide show
  1. composer.json +4 -4
  2. index.php +2 -2
  3. loggers/Plugin_ACF.php +5 -6
  4. readme.txt +5 -1
composer.json CHANGED
@@ -13,17 +13,17 @@
13
  "require": {
14
  "php": ">=5.3.0"
15
  },
16
- "version": "2.0.25",
17
  "authors": [
18
  {
19
  "name": "Pär Thernström",
20
  "email": "par.thernstrom@gmail.com",
21
- "homepage": "http://eskapism.se/",
22
  "role": "Developer"
23
  }
24
  ],
25
  "dist": {
26
- "url": "https://downloads.wordpress.org/plugin/simple-history.2.0.25.zip",
27
  "type": "zip"
28
  }
29
- }
13
  "require": {
14
  "php": ">=5.3.0"
15
  },
16
+ "version": "2.21",
17
  "authors": [
18
  {
19
  "name": "Pär Thernström",
20
  "email": "par.thernstrom@gmail.com",
21
+ "homepage": "https://eskapism.se/",
22
  "role": "Developer"
23
  }
24
  ],
25
  "dist": {
26
+ "url": "https://downloads.wordpress.org/plugin/simple-history.2.21.zip",
27
  "type": "zip"
28
  }
29
+ }
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.21
9
  * Author: Pär Thernström
10
  * Author URI: http://simple-history.com/
11
  * License: GPL2
@@ -48,7 +48,7 @@ if ( $ok_php_version && $ok_wp_version ) {
48
  */
49
 
50
  if ( ! defined( 'SIMPLE_HISTORY_VERSION' ) ) {
51
- define( 'SIMPLE_HISTORY_VERSION', '2.21' );
52
  }
53
 
54
  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.21.1
9
  * Author: Pär Thernström
10
  * Author URI: http://simple-history.com/
11
  * License: GPL2
48
  */
49
 
50
  if ( ! defined( 'SIMPLE_HISTORY_VERSION' ) ) {
51
+ define( 'SIMPLE_HISTORY_VERSION', '2.21.1' );
52
  }
53
 
54
  if ( ! defined( 'SIMPLE_HISTORY_PATH' ) ) {
loggers/Plugin_ACF.php CHANGED
@@ -2,11 +2,6 @@
2
 
3
  defined( 'ABSPATH' ) || die();
4
 
5
- // Only enable in development mode.
6
- if ( ! defined( 'SIMPLE_HISTORY_DEV' ) || ! SIMPLE_HISTORY_DEV ) {
7
- return;
8
- }
9
-
10
  /**
11
  * Logger for the Advanced Custom Fields (ACF) plugin
12
  * https://sv.wordpress.org/plugins/advanced-custom-fields/
@@ -69,13 +64,17 @@ if ( ! class_exists( 'Plugin_ACF' ) ) {
69
  return $arr_info;
70
  }
71
 
 
 
 
 
72
  /**
73
  * Method called when logger is loaded.
74
  */
75
  public function loaded() {
76
 
77
  // Bail if no ACF found.
78
- if ( ! function_exists( 'acf_verify_nonce' ) ) {
79
  return;
80
  }
81
 
2
 
3
  defined( 'ABSPATH' ) || die();
4
 
 
 
 
 
 
5
  /**
6
  * Logger for the Advanced Custom Fields (ACF) plugin
7
  * https://sv.wordpress.org/plugins/advanced-custom-fields/
64
  return $arr_info;
65
  }
66
 
67
+ private function isACFInstalled() {
68
+ return defined('ACF') && ACF;
69
+ }
70
+
71
  /**
72
  * Method called when logger is loaded.
73
  */
74
  public function loaded() {
75
 
76
  // Bail if no ACF found.
77
+ if ( ! $this->isACFInstalled() ) {
78
  return;
79
  }
80
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: history, log, changes, changelog, audit, trail, pages, attachments, users,
5
  Requires at least: 4.5.1
6
  Tested up to: 4.9
7
  Requires PHP: 5.3
8
- Stable tag: 2.21
9
 
10
  View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
11
 
@@ -163,6 +163,10 @@ A simple way to see any uncommon activity, for example an increased number of lo
163
 
164
  ## Changelog
165
 
 
 
 
 
166
  = 2.21 (May 2018) =
167
 
168
  - Added support for Advanced Custom Fields (ACF): when a ACF Field or ACF Field Group is created or modified or deleted you will now get more details in the activity feed.
5
  Requires at least: 4.5.1
6
  Tested up to: 4.9
7
  Requires PHP: 5.3
8
+ Stable tag: 2.21.1
9
 
10
  View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
11
 
163
 
164
  ## Changelog
165
 
166
+ = 2.21.1 (May 2018) =
167
+
168
+ - Make sure support for Advanced Custom Fields is activated for all users – and not only for the developer of the plugin ;)
169
+
170
  = 2.21 (May 2018) =
171
 
172
  - Added support for Advanced Custom Fields (ACF): when a ACF Field or ACF Field Group is created or modified or deleted you will now get more details in the activity feed.