Version Description
- Attachment names were urlencoded and looked wierd. Now they're not.
- Started to store plugin version number
Download this release
Release Info
| Developer | eskapism |
| Plugin | |
| Version | 0.3.9 |
| Comparing to | |
| See all releases | |
Code changes from version 0.3.8 to 0.3.9
- index.php +8 -11
- readme.txt +12 -6
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 of the changes made by users in WordPress.
|
| 6 |
-
Version: 0.3.
|
| 7 |
Author: Pär Thernström
|
| 8 |
Author URI: http://eskapism.se/
|
| 9 |
License: GPL2
|
|
@@ -25,7 +25,7 @@ License: GPL2
|
|
| 25 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
| 26 |
*/
|
| 27 |
|
| 28 |
-
define( "SIMPLE_HISTORY_VERSION", "0.3.
|
| 29 |
define( "SIMPLE_HISTORY_NAME", "Simple History");
|
| 30 |
define( "SIMPLE_HISTORY_URL", WP_PLUGIN_URL . '/simple-history/');
|
| 31 |
|
|
@@ -252,6 +252,9 @@ function simple_history_settings_field() {
|
|
| 252 |
<label for="simple_history_show_as_page"><?php _e("as a page under the tools menu", 'simple-history') ?></label>
|
| 253 |
|
| 254 |
<?php
|
|
|
|
|
|
|
|
|
|
| 255 |
}
|
| 256 |
|
| 257 |
function simple_history_get_rss_address() {
|
|
@@ -641,12 +644,8 @@ if (!function_exists("bonny_d")) {
|
|
| 641 |
}
|
| 642 |
|
| 643 |
// when activating plugin: create tables
|
| 644 |
-
#register_activation_hook( __FILE__, 'simple_history_install' );
|
| 645 |
-
#echo "<br>" . WP_PLUGIN_DIR . "/simple-history/index.php";
|
| 646 |
-
#echo plugin_basename(__FILE__);
|
| 647 |
// __FILE__ doesnt work for me because of soft linkes directories
|
| 648 |
register_activation_hook( WP_PLUGIN_DIR . "/simple-history/index.php" , 'simple_history_install' );
|
| 649 |
-
|
| 650 |
function simple_history_install() {
|
| 651 |
|
| 652 |
global $wpdb;
|
|
@@ -679,6 +678,8 @@ function simple_history_install() {
|
|
| 679 |
if (!get_option("simple_history_rss_secret")) {
|
| 680 |
simple_history_update_rss_secret();
|
| 681 |
}
|
|
|
|
|
|
|
| 682 |
|
| 683 |
}
|
| 684 |
|
|
@@ -1038,8 +1039,7 @@ function simple_history_print_history($args = null) {
|
|
| 1038 |
$post = get_post($object_id);
|
| 1039 |
|
| 1040 |
if ($post) {
|
| 1041 |
-
|
| 1042 |
-
$title = urlencode(get_the_title($post->ID));
|
| 1043 |
$edit_link = get_edit_post_link($object_id, 'display');
|
| 1044 |
$attachment_image_src = wp_get_attachment_image_src($object_id, array(50,50), true);
|
| 1045 |
$attachment_image = "";
|
|
@@ -1051,7 +1051,6 @@ function simple_history_print_history($args = null) {
|
|
| 1051 |
$attachment_out .= "<span class='simple-history-title'>{$title}</span>";
|
| 1052 |
$attachment_out .= "</a>";
|
| 1053 |
|
| 1054 |
-
#echo " (".get_post_mime_type($object_id).")";
|
| 1055 |
} else {
|
| 1056 |
if ($object_name) {
|
| 1057 |
$attachment_out .= "<span class='simple-history-title'>\"" . esc_html($object_name) . "\"</span>";
|
|
@@ -1072,8 +1071,6 @@ function simple_history_print_history($args = null) {
|
|
| 1072 |
|
| 1073 |
$attachment_out = ucfirst($attachment_out);
|
| 1074 |
echo $attachment_out;
|
| 1075 |
-
#echo " <span class='simple-history-discrete'>(".get_post_mime_type($object_id).")</span>";
|
| 1076 |
-
|
| 1077 |
|
| 1078 |
} elseif ("user" == $object_type) {
|
| 1079 |
$user_out = "";
|
| 3 |
Plugin Name: Simple History
|
| 4 |
Plugin URI: http://eskapism.se/code-playground/simple-history/
|
| 5 |
Description: Get a log of the changes made by users in WordPress.
|
| 6 |
+
Version: 0.3.9
|
| 7 |
Author: Pär Thernström
|
| 8 |
Author URI: http://eskapism.se/
|
| 9 |
License: GPL2
|
| 25 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
| 26 |
*/
|
| 27 |
|
| 28 |
+
define( "SIMPLE_HISTORY_VERSION", "0.3.9");
|
| 29 |
define( "SIMPLE_HISTORY_NAME", "Simple History");
|
| 30 |
define( "SIMPLE_HISTORY_URL", WP_PLUGIN_URL . '/simple-history/');
|
| 31 |
|
| 252 |
<label for="simple_history_show_as_page"><?php _e("as a page under the tools menu", 'simple-history') ?></label>
|
| 253 |
|
| 254 |
<?php
|
| 255 |
+
#$version = get_option("simple_history_version", "0.3.8");
|
| 256 |
+
#echo "<br><br>version: $version";
|
| 257 |
+
#update_option("simple_history_rss_secret", $rss_secret);
|
| 258 |
}
|
| 259 |
|
| 260 |
function simple_history_get_rss_address() {
|
| 644 |
}
|
| 645 |
|
| 646 |
// when activating plugin: create tables
|
|
|
|
|
|
|
|
|
|
| 647 |
// __FILE__ doesnt work for me because of soft linkes directories
|
| 648 |
register_activation_hook( WP_PLUGIN_DIR . "/simple-history/index.php" , 'simple_history_install' );
|
|
|
|
| 649 |
function simple_history_install() {
|
| 650 |
|
| 651 |
global $wpdb;
|
| 678 |
if (!get_option("simple_history_rss_secret")) {
|
| 679 |
simple_history_update_rss_secret();
|
| 680 |
}
|
| 681 |
+
|
| 682 |
+
update_option("simple_history_version", SIMPLE_HISTORY_VERSION);
|
| 683 |
|
| 684 |
}
|
| 685 |
|
| 1039 |
$post = get_post($object_id);
|
| 1040 |
|
| 1041 |
if ($post) {
|
| 1042 |
+
$title = esc_html(get_the_title($post->ID));
|
|
|
|
| 1043 |
$edit_link = get_edit_post_link($object_id, 'display');
|
| 1044 |
$attachment_image_src = wp_get_attachment_image_src($object_id, array(50,50), true);
|
| 1045 |
$attachment_image = "";
|
| 1051 |
$attachment_out .= "<span class='simple-history-title'>{$title}</span>";
|
| 1052 |
$attachment_out .= "</a>";
|
| 1053 |
|
|
|
|
| 1054 |
} else {
|
| 1055 |
if ($object_name) {
|
| 1056 |
$attachment_out .= "<span class='simple-history-title'>\"" . esc_html($object_name) . "\"</span>";
|
| 1071 |
|
| 1072 |
$attachment_out = ucfirst($attachment_out);
|
| 1073 |
echo $attachment_out;
|
|
|
|
|
|
|
| 1074 |
|
| 1075 |
} elseif ("user" == $object_type) {
|
| 1076 |
$user_out = "";
|
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
|
| 5 |
Requires at least: 2.9.2
|
| 6 |
Tested up to: 3.0
|
| 7 |
-
Stable tag: 0.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 |
|
|
@@ -12,12 +12,14 @@ View changes made by users within WordPress. See who created a page, uploaded an
|
|
| 12 |
|
| 13 |
Simple History shows recent changes made within WordPress, directly on your dashboard or on a separate page.
|
| 14 |
|
| 15 |
-
Users of the system can
|
| 16 |
-
what attachments have been uploaded, modified or deleted, and what plugins that have been
|
| 17 |
-
activated or deactivated**.
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
It’s a plugin that is good to have on websites where several people are
|
| 23 |
involved in editing the content.
|
|
@@ -75,6 +77,10 @@ to only use the secret RSS feed to keep track of the changes on you web site/Wor
|
|
| 75 |
|
| 76 |
== Changelog ==
|
| 77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
= 0.3.8 =
|
| 79 |
- Added chinese translation
|
| 80 |
- Uses WordPress own human_time_diff() instead of own version
|
| 4 |
Tags: history, log, changes, changelog, audit, trail, pages, attachments, users, cms, dashboard, admin
|
| 5 |
Requires at least: 2.9.2
|
| 6 |
Tested up to: 3.0
|
| 7 |
+
Stable tag: 0.3.9
|
| 8 |
|
| 9 |
View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
|
| 10 |
|
| 12 |
|
| 13 |
Simple History shows recent changes made within WordPress, directly on your dashboard or on a separate page.
|
| 14 |
|
| 15 |
+
Users of the system can
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
* see what articles have been created, modified or deleted
|
| 18 |
+
* see what attachments have been uploaded, modified or deleted
|
| 19 |
+
* see what plugins that have been activated or deactivated
|
| 20 |
+
|
| 21 |
+
All **changes are also available as a RSS feed** so you can keep track of the changes made
|
| 22 |
+
via your favorite RSS reader on your phone, on your iPad, or on your computer.
|
| 23 |
|
| 24 |
It’s a plugin that is good to have on websites where several people are
|
| 25 |
involved in editing the content.
|
| 77 |
|
| 78 |
== Changelog ==
|
| 79 |
|
| 80 |
+
= 0.3.9 =
|
| 81 |
+
- Attachment names were urlencoded and looked wierd. Now they're not.
|
| 82 |
+
- Started to store plugin version number
|
| 83 |
+
|
| 84 |
= 0.3.8 =
|
| 85 |
- Added chinese translation
|
| 86 |
- Uses WordPress own human_time_diff() instead of own version
|
