Version Description
- Capability for viewing settings changed from edit_pages to the more correct manage_options
Download this release
Release Info
Developer | eskapism |
Plugin | Simple History |
Version | 1.3.3 |
Comparing to | |
See all releases |
Code changes from version 1.3.2 to 1.3.3
- index.php +9 -4
- readme.txt +4 -1
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Simple History
|
4 |
Plugin URI: http://eskapism.se/code-playground/simple-history/
|
5 |
Description: Get a log/history/audit log/version history of the changes made by users in WordPress.
|
6 |
-
Version: 1.3.
|
7 |
Author: Pär Thernström
|
8 |
Author URI: http://eskapism.se/
|
9 |
License: GPL2
|
@@ -27,7 +27,7 @@ License: GPL2
|
|
27 |
|
28 |
load_plugin_textdomain('simple-history', false, "/simple-history/languages");
|
29 |
|
30 |
-
define( "SIMPLE_HISTORY_VERSION", "1.3.
|
31 |
define( "SIMPLE_HISTORY_NAME", "Simple History");
|
32 |
|
33 |
// Find the plugin directory URL
|
@@ -52,7 +52,8 @@ define("SIMPLE_HISTORY_URL", $plugin_dir_url);
|
|
52 |
|
53 |
var
|
54 |
$plugin_foldername_and_filename,
|
55 |
-
$view_history_capability
|
|
|
56 |
;
|
57 |
|
58 |
function __construct() {
|
@@ -65,8 +66,12 @@ define("SIMPLE_HISTORY_URL", $plugin_dir_url);
|
|
65 |
add_filter( 'plugin_action_links_simple-history/index.php', array($this, "plugin_action_links"), 10, 4);
|
66 |
|
67 |
$this->plugin_foldername_and_filename = basename(dirname(__FILE__)) . "/" . basename(__FILE__);
|
|
|
68 |
$this->view_history_capability = "edit_pages";
|
69 |
$this->view_history_capability = apply_filters("simple_history_view_history_capability", $this->view_history_capability);
|
|
|
|
|
|
|
70 |
|
71 |
$this->add_types_for_translation();
|
72 |
|
@@ -288,7 +293,7 @@ define("SIMPLE_HISTORY_URL", $plugin_dir_url);
|
|
288 |
$show_settings_page = TRUE;
|
289 |
$show_settings_page = apply_filters("simple_history_show_settings_page", $show_settings_page);
|
290 |
if ($show_settings_page) {
|
291 |
-
add_options_page(__('Simple History Settings', "simple-history"), SIMPLE_HISTORY_NAME, $this->
|
292 |
}
|
293 |
|
294 |
add_settings_section("simple_history_settings_section", __("", "simple-history"), "simple_history_settings_page", "simple_history_settings_menu_slug");
|
3 |
Plugin Name: Simple History
|
4 |
Plugin URI: http://eskapism.se/code-playground/simple-history/
|
5 |
Description: Get a log/history/audit log/version history of the changes made by users in WordPress.
|
6 |
+
Version: 1.3.3
|
7 |
Author: Pär Thernström
|
8 |
Author URI: http://eskapism.se/
|
9 |
License: GPL2
|
27 |
|
28 |
load_plugin_textdomain('simple-history', false, "/simple-history/languages");
|
29 |
|
30 |
+
define( "SIMPLE_HISTORY_VERSION", "1.3.3");
|
31 |
define( "SIMPLE_HISTORY_NAME", "Simple History");
|
32 |
|
33 |
// Find the plugin directory URL
|
52 |
|
53 |
var
|
54 |
$plugin_foldername_and_filename,
|
55 |
+
$view_history_capability,
|
56 |
+
$view_settings_capability
|
57 |
;
|
58 |
|
59 |
function __construct() {
|
66 |
add_filter( 'plugin_action_links_simple-history/index.php', array($this, "plugin_action_links"), 10, 4);
|
67 |
|
68 |
$this->plugin_foldername_and_filename = basename(dirname(__FILE__)) . "/" . basename(__FILE__);
|
69 |
+
|
70 |
$this->view_history_capability = "edit_pages";
|
71 |
$this->view_history_capability = apply_filters("simple_history_view_history_capability", $this->view_history_capability);
|
72 |
+
|
73 |
+
$this->view_settings_capability = "manage_options";
|
74 |
+
$this->view_settings_capability = apply_filters("simple_history_view_settings_capability", $this->view_settings_capability);
|
75 |
|
76 |
$this->add_types_for_translation();
|
77 |
|
293 |
$show_settings_page = TRUE;
|
294 |
$show_settings_page = apply_filters("simple_history_show_settings_page", $show_settings_page);
|
295 |
if ($show_settings_page) {
|
296 |
+
add_options_page(__('Simple History Settings', "simple-history"), SIMPLE_HISTORY_NAME, $this->view_settings_capability, "simple_history_settings_menu_slug", array($this, 'settings_page'));
|
297 |
}
|
298 |
|
299 |
add_settings_section("simple_history_settings_section", __("", "simple-history"), "simple_history_settings_page", "simple_history_settings_menu_slug");
|
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
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 3.5.1
|
7 |
-
Stable tag: 1.3.
|
8 |
|
9 |
View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
|
10 |
|
@@ -175,6 +175,9 @@ to only use the secret RSS feed to keep track of the changes on you web site/Wor
|
|
175 |
|
176 |
== Changelog ==
|
177 |
|
|
|
|
|
|
|
178 |
= 1.3.2 =
|
179 |
- Could get php notice warning if rss secret was not set. Also: make sure both public and private secret exists.
|
180 |
|
4 |
Tags: history, log, changes, changelog, audit, trail, pages, attachments, users, cms, dashboard, admin, syslog
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 3.5.1
|
7 |
+
Stable tag: 1.3.3
|
8 |
|
9 |
View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
|
10 |
|
175 |
|
176 |
== Changelog ==
|
177 |
|
178 |
+
= 1.3.3 =
|
179 |
+
- Capability for viewing settings changed from edit_pages to the more correct [manage_options](http://codex.wordpress.org/Roles_and_Capabilities#manage_options)
|
180 |
+
|
181 |
= 1.3.2 =
|
182 |
- Could get php notice warning if rss secret was not set. Also: make sure both public and private secret exists.
|
183 |
|