Simple History - Version 2.7.2

Version Description

(June 2016) =

  • Fixed message about mbstring required not being echo'ed.
  • Fixed notice errors for users not allowed to view the log.
Download this release

Release Info

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

Code changes from version 2.7.1 to 2.7.2

Files changed (3) hide show
  1. inc/SimpleHistory.php +2 -2
  2. index.php +4 -3
  3. readme.txt +8 -3
inc/SimpleHistory.php CHANGED
@@ -226,7 +226,7 @@ class SimpleHistory {
226
 
227
  // User must have capability to view the history page
228
  if ( ! current_user_can( $this->get_view_history_capability() ) ) {
229
- return $actions;
230
  }
231
 
232
  /* menu_page_url() is defined in the WordPress Plugin Administration API, which is not loaded here by default */
@@ -299,7 +299,7 @@ class SimpleHistory {
299
 
300
  // User must have capability to view the history page
301
  if ( ! current_user_can( $this->get_view_history_capability() ) ) {
302
- return $actions;
303
  }
304
 
305
  /* menu_page_url() is defined in the WordPress Plugin Administration API, which is not loaded here by default */
226
 
227
  // User must have capability to view the history page
228
  if ( ! current_user_can( $this->get_view_history_capability() ) ) {
229
+ return;
230
  }
231
 
232
  /* menu_page_url() is defined in the WordPress Plugin Administration API, which is not loaded here by default */
299
 
300
  // User must have capability to view the history page
301
  if ( ! current_user_can( $this->get_view_history_capability() ) ) {
302
+ return;
303
  }
304
 
305
  /* menu_page_url() is defined in the WordPress Plugin Administration API, which is not loaded here by default */
index.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://simple-history.com
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.7.1
9
  Author: Pär Thernström
10
  Author URI: http://simple-history.com/
11
  License: GPL2
@@ -42,7 +42,7 @@ if ( version_compare( phpversion(), "5.3", ">=") && function_exists( "mb_strimwi
42
  // register_activation_hook( trailingslashit(WP_PLUGIN_DIR) . trailingslashit( plugin_basename(__DIR__) ) . "index.php" , array("SimpleHistory", "on_plugin_activate" ) );
43
 
44
  if ( ! defined( 'SIMPLE_HISTORY_VERSION' ) ) {
45
- define( 'SIMPLE_HISTORY_VERSION', '2.7.1' );
46
  }
47
 
48
  if ( ! defined( 'SIMPLE_HISTORY_PATH' ) ) {
@@ -101,7 +101,8 @@ if ( version_compare( phpversion(), "5.3", ">=") && function_exists( "mb_strimwi
101
  );
102
 
103
  if ( ! function_exists("mb_strimwidth") ) {
104
- __('You also need the mbstring extension to be enabled in PHP.', "simple-history");
 
105
  }
106
 
107
  ?></p>
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.7.2
9
  Author: Pär Thernström
10
  Author URI: http://simple-history.com/
11
  License: GPL2
42
  // register_activation_hook( trailingslashit(WP_PLUGIN_DIR) . trailingslashit( plugin_basename(__DIR__) ) . "index.php" , array("SimpleHistory", "on_plugin_activate" ) );
43
 
44
  if ( ! defined( 'SIMPLE_HISTORY_VERSION' ) ) {
45
+ define( 'SIMPLE_HISTORY_VERSION', '2.7.2' );
46
  }
47
 
48
  if ( ! defined( 'SIMPLE_HISTORY_PATH' ) ) {
101
  );
102
 
103
  if ( ! function_exists("mb_strimwidth") ) {
104
+ echo "<br>";
105
+ _e('You also need the mbstring extension to be enabled in PHP.', "simple-history");
106
  }
107
 
108
  ?></p>
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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, audit trail, brute-force
5
  Requires at least: 4.5.1
6
  Tested up to: 4.5.2
7
- Stable tag: 2.7.1
8
 
9
  View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
10
 
@@ -42,10 +42,10 @@ view details about changes made in the differnt settings sections of WordPress.
42
 
43
  By default Simple History comes with support for these third party plugins:
44
 
45
- **User Switching**
46
  The [User Switching plugin](https://wordpress.org/plugins/user-switching/) allows you to quickly swap between user accounts in WordPress at the click of a button. Simple History will log each user switch being made.
47
 
48
- **Enable Media Replace**
49
  The [Enable Media Replace plugin](https://wordpress.org/plugins/enable-media-replace/) allows you to replace a file in your media library by uploading a new file in its place. Simple history will log details about the file being replaced and details about the new file.
50
 
51
  Support for more plugins are coming.
@@ -149,6 +149,11 @@ A simple way to see any uncommon activity, for example an increased number of lo
149
 
150
  ## Changelog
151
 
 
 
 
 
 
152
  = 2.7.1 (June 2016) =
153
 
154
  - Added: Add shortcut to history in Admin bar for current site and in Network Admin Bar for each site where plugin is installed. Can be disabled using filters `simple_history/add_admin_bar_menu_item` and `simple_history/add_admin_bar_network_menu_item`.
4
  Tags: history, log, changes, changelog, audit, trail, pages, attachments, users, cms, dashboard, admin, syslog, feed, activity, stream, audit trail, brute-force
5
  Requires at least: 4.5.1
6
  Tested up to: 4.5.2
7
+ Stable tag: 2.7.2
8
 
9
  View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
10
 
42
 
43
  By default Simple History comes with support for these third party plugins:
44
 
45
+ **User Switching**
46
  The [User Switching plugin](https://wordpress.org/plugins/user-switching/) allows you to quickly swap between user accounts in WordPress at the click of a button. Simple History will log each user switch being made.
47
 
48
+ **Enable Media Replace**
49
  The [Enable Media Replace plugin](https://wordpress.org/plugins/enable-media-replace/) allows you to replace a file in your media library by uploading a new file in its place. Simple history will log details about the file being replaced and details about the new file.
50
 
51
  Support for more plugins are coming.
149
 
150
  ## Changelog
151
 
152
+ = 2.7.2 (June 2016) =
153
+
154
+ - Fixed message about mbstring required not being echo'ed.
155
+ - Fixed notice errors for users not allowed to view the log.
156
+
157
  = 2.7.1 (June 2016) =
158
 
159
  - Added: Add shortcut to history in Admin bar for current site and in Network Admin Bar for each site where plugin is installed. Can be disabled using filters `simple_history/add_admin_bar_menu_item` and `simple_history/add_admin_bar_network_menu_item`.