Simple History - Version 0.3.5

Version Description

  • using get_the_title instead of fetching the title directly from the post object. should make plugins like qtranslate work a bit better.
  • preparing for translation by using __() and _e() functions. POT-file will be available shortly.
  • Could get cryptiug "simpleHistoryNoMoreItems"-text when loading a type with no items.
Download this release

Release Info

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

Code changes from version 0.3.4 to 0.3.5

Files changed (3) hide show
  1. index.php +64 -74
  2. readme.txt +6 -1
  3. scripts.js +10 -4
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.4
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.4");
29
  define( "SIMPLE_HISTORY_NAME", "Simple History");
30
  define( "SIMPLE_HISTORY_URL", WP_PLUGIN_URL . '/simple-history/');
31
 
@@ -90,33 +90,6 @@ function simple_history_admin_head() {
90
  }
91
 
92
 
93
- /*
94
- http://codex.wordpress.org/Plugin_API/Action_Reference
95
-
96
- create_category
97
- Runs when a new category is created. Action function arguments: category ID.
98
-
99
- delete_category
100
- Runs just after a category is deleted from the database and its corresponding links/posts are updated to remove the category. Action function arguments: category ID.
101
-
102
- edit_category
103
- Runs when a category is updated/edited, including when a post or blogroll link is added/deleted or its categories are updated (which causes the count for the category to update). Action function arguments: category ID.
104
-
105
- add_link
106
- Runs when a new blogroll link is first added to the database. Action function arguments: link ID.
107
-
108
- delete_link
109
- Runs when a blogroll link is deleted. Action function arguments: link ID.
110
-
111
- edit_link
112
- Runs when a blogroll link is edited. Action function arguments: link ID.
113
-
114
- switch_theme
115
- Runs when the blog's theme is changed. Action function argument: name of the new theme.
116
-
117
-
118
- */
119
-
120
  function simple_history_init() {
121
 
122
  // users and stuff
@@ -150,8 +123,8 @@ function simple_history_init() {
150
  ?>
151
  <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
152
  <channel>
153
- <title>Simple History for <?php echo get_bloginfo("name") ?></title>
154
- <description>WordPress History for <?php echo get_bloginfo("name") ?></description>
155
  <link><?php echo get_bloginfo("siteurl") ?></link>
156
  <atom:link href="<?php echo $self_link; ?>" rel="self" type="application/rss+xml" />
157
  <?php
@@ -163,10 +136,12 @@ function simple_history_init() {
163
  $user_nicename = esc_html($user->user_nicename);
164
  $description = "";
165
  if ($user_nicename) {
166
- $description .= "By $user_nicename<br />";
 
167
  }
168
  if ($one_item->occasions) {
169
- $description .= sizeof($one_item->occasions) . " occasions<br />";
 
170
  }
171
 
172
  $item_title = "$object_type \"{$object_name}\" {$one_item->action}";
@@ -189,17 +164,17 @@ function simple_history_init() {
189
  // not ok rss secret
190
  ?>
191
  <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
192
- <channel>
193
- <title>Simple History for <?php echo get_bloginfo("name") ?></title>
194
- <description>WordPress History for <?php echo get_bloginfo("name") ?></description>
195
- <link><?php echo get_bloginfo("siteurl") ?></link>
196
- <atom:link href="<?php echo $self_link; ?>" rel="self" type="application/rss+xml" />
197
- <item>
198
- <title>Wrong RSS secret</title>
199
- <description>Your RSS secret for Simple History RSS feed is wrong. Please see WordPress settings for current link to the RSS feed.</description>
200
- <pubDate><?php echo date("D, d M Y H:i:s", time()) ?> GMT</pubDate>
201
- <guid><?php echo get_bloginfo("siteurl") . "?simple-history-guid=wrong-secret" ?></guid>
202
- </item>
203
  </channel>
204
  </rss>
205
  <?php
@@ -213,6 +188,8 @@ function simple_history_init() {
213
 
214
  function simple_history_admin_init() {
215
 
 
 
216
  // posts
217
  add_action("save_post", "simple_history_save_post");
218
  add_action("transition_post_status", "simple_history_transition_post_status", 10, 3);
@@ -267,12 +244,12 @@ function simple_history_settings_field() {
267
  ?>
268
 
269
  <input <?php echo $show_on_dashboard ? "checked='checked'" : "" ?> type="checkbox" value="1" name="simple_history_show_on_dashboard" id="simple_history_show_on_dashboard" />
270
- <label for="simple_history_show_on_dashboard">on the dashboard</label>
271
 
272
  <br />
273
 
274
  <input <?php echo $show_as_page ? "checked='checked'" : "" ?> type="checkbox" value="1" name="simple_history_show_as_page" id="simple_history_show_as_page" />
275
- <label for="simple_history_show_as_page">as a page under the tools menu</label>
276
 
277
  <?php
278
  }
@@ -302,7 +279,9 @@ function simple_history_settings_field_rss() {
302
  }
303
  if ($_GET["simple_history_rss_update_secret"]) {
304
  $create_new_secret = true;
305
- echo "<p class='updated'>Created new secret RSS adress</p>";
 
 
306
  }
307
 
308
  if ($create_new_secret) {
@@ -311,10 +290,11 @@ function simple_history_settings_field_rss() {
311
 
312
  $rss_address = simple_history_get_rss_address();
313
  echo "<code><a href='$rss_address'>$rss_address</a></code>";
314
- echo "<br />This is a secret RSS feed for Simple History. Only share the link with people you trust.";
 
315
  echo "<br />";
316
  $update_link = add_query_arg("simple_history_rss_update_secret", "1");
317
- echo "You can <a href='$update_link'>generate a new address</a> for the RSS feed. This is useful if you think that the address has fallen into the wrong hands.";
318
  }
319
 
320
  // @todo: move all add-related stuff to own file? there are so many of them.. kinda confusing, ey.
@@ -415,7 +395,7 @@ function simple_history_update_option($option, $oldval, $newval) {
415
  $diff_removed = array_diff((array) $oldval, (array) $newval);
416
  $debug .= "\ndiff_added: " . print_r($diff_added, true);
417
  $debug .= "\ndiff_removed: " . print_r($diff_removed, true);
418
- b_fd($debug);
419
  }
420
  }
421
 
@@ -454,18 +434,18 @@ function simple_history_updated_option3($option) {
454
 
455
  function simple_history_add_attachment($attachment_id) {
456
  $post = get_post($attachment_id);
457
- $post_title = urlencode($post->post_title);
458
  simple_history_add("action=added&object_type=attachment&object_id=$attachment_id&object_name=$post_title");
459
  }
460
  function simple_history_edit_attachment($attachment_id) {
461
  // is this only being called if the title of the attachment is changed?!
462
  $post = get_post($attachment_id);
463
- $post_title = urlencode($post->post_title);
464
  simple_history_add("action=updated&object_type=attachment&object_id=$attachment_id&object_name=$post_title");
465
  }
466
  function simple_history_delete_attachment($attachment_id) {
467
  $post = get_post($attachment_id);
468
- $post_title = urlencode($post->post_title);
469
  simple_history_add("action=deleted&object_type=attachment&object_id=$attachment_id&object_name=$post_title");
470
  }
471
 
@@ -515,7 +495,7 @@ function simple_history_delete_post($post_id) {
515
  if (wp_is_post_revision($post_id) == false) {
516
  $post = get_post($post_id);
517
  if ($post->post_status != "auto-draft" && $post->post_status != "inherit") {
518
- $post_title = urlencode($post->post_title);
519
  simple_history_add("action=deleted&object_type=post&object_subtype=" . $post->post_type . "&object_id=$post_id&object_name=$post_title");
520
  }
521
  }
@@ -577,7 +557,8 @@ function simple_history_transition_post_status($new_status, $old_status, $post)
577
  return;
578
  }
579
 
580
- $post_title = urlencode($post->post_title);
 
581
 
582
  simple_history_add("action=$action&object_type=$object_type&object_subtype=$object_subtype&object_id=$object_id&object_name=$post_title");
583
  }
@@ -827,7 +808,7 @@ function simple_history_print_nav() {
827
  }
828
  $link = esc_html(add_query_arg("simple_history_user_to_show", ""));
829
  #echo "<li>Filter by user: </li>";
830
- $str_users .= "<li $css><a href='$link'>By all users</a> | </li>";
831
  foreach ($arr_users as $user_id => $user_info) {
832
  $link = esc_html(add_query_arg("simple_history_user_to_show", $user_id));
833
  $css = "";
@@ -1044,7 +1025,7 @@ function simple_history_print_history($args = null) {
1044
  }
1045
  }
1046
  } else {
1047
- $who .= "&lt;Unknown or deleted user&gt;";
1048
  }
1049
  $who .= "</span>";
1050
 
@@ -1063,18 +1044,19 @@ function simple_history_print_history($args = null) {
1063
  $post_out .= " <span class='simple-history-title'>&lt;unknown name&gt;</span>";
1064
  }
1065
  } else {
1066
- $title = esc_html($post->post_title);
 
1067
  $edit_link = get_edit_post_link($object_id, 'display');
1068
  $post_out .= " <a href='$edit_link'>";
1069
  $post_out .= "<span class='simple-history-title'>{$title}</span>";
1070
  $post_out .= "</a>";
1071
  }
1072
  if ("created" == $action) {
1073
- $post_out .= " created ";
1074
  } elseif ("updated" == $action) {
1075
- $post_out .= " updated ";
1076
  } elseif ("deleted" == $action) {
1077
- $post_out .= " deleted";
1078
  } else {
1079
  $post_out .= " $action";
1080
  }
@@ -1090,7 +1072,8 @@ function simple_history_print_history($args = null) {
1090
  $post = get_post($object_id);
1091
 
1092
  if ($post) {
1093
- $title = $post->post_title;
 
1094
  $edit_link = get_edit_post_link($object_id, 'display');
1095
  $attachment_image_src = wp_get_attachment_image_src($object_id, array(50,50), true);
1096
  $attachment_image = "";
@@ -1162,15 +1145,15 @@ function simple_history_print_history($args = null) {
1162
  }
1163
 
1164
  if ("created" == $action) {
1165
- $user_out .= " added ";
1166
  } elseif ("updated" == $action) {
1167
- $user_out .= " updated ";
1168
  } elseif ("deleted" == $action) {
1169
- $user_out .= " deleted ";
1170
  } elseif ("logged_in" == $action) {
1171
- $user_out .= " logged in";
1172
  } elseif ("logged_out" == $action) {
1173
- $user_out .= " logged out";
1174
  } else {
1175
  $user_out .= " $action";
1176
  }
@@ -1204,9 +1187,11 @@ function simple_history_print_history($args = null) {
1204
  if ($num_occasions > 0) {
1205
  echo "<div class='third'>";
1206
  if ($num_occasions == 1) {
1207
- echo "<a class='simple-history-occasion-show' href='#'>+ 1 occasion</a>";
 
1208
  } else {
1209
- echo "<a class='simple-history-occasion-show' href='#'>+ $num_occasions occasions</a>";
 
1210
  }
1211
  echo "<ul class='simple-history-occasions hidden'>";
1212
  foreach ($occasions as $one_occasion) {
@@ -1233,19 +1218,24 @@ function simple_history_print_history($args = null) {
1233
  }
1234
 
1235
  if (!$args["is_ajax"]) {
 
 
 
1236
  echo "</ol>
1237
  </div>
1238
- <p id='simple-history-load-more'><a href='#'>Show $args[items] more</a></p>
1239
- <p class='hidden' id='simple-history-load-more-loading'>Loading...</p>
1240
- <p class='hidden' id='simple-history-no-more-items'>No more history items found.</p>
1241
  ";
1242
  }
1243
  } else {
1244
  if ($args["is_ajax"]) {
1245
  echo "simpleHistoryNoMoreItems";
1246
  } else {
1247
- echo "<p>No history items found.</p>";
1248
- echo "<p>Please note that Simple History only records things that happen after this plugin have been installed.</p>";
 
 
1249
  }
1250
 
1251
  }
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.5
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.5");
29
  define( "SIMPLE_HISTORY_NAME", "Simple History");
30
  define( "SIMPLE_HISTORY_URL", WP_PLUGIN_URL . '/simple-history/');
31
 
90
  }
91
 
92
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  function simple_history_init() {
94
 
95
  // users and stuff
123
  ?>
124
  <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
125
  <channel>
126
+ <title><?php printf(__("Simple History for %s", 'simple-history'), get_bloginfo("name")) ?></title>
127
+ <description><?php printf(__("WordPress History for %s", 'simple-history'), get_bloginfo("name")) ?></description>
128
  <link><?php echo get_bloginfo("siteurl") ?></link>
129
  <atom:link href="<?php echo $self_link; ?>" rel="self" type="application/rss+xml" />
130
  <?php
136
  $user_nicename = esc_html($user->user_nicename);
137
  $description = "";
138
  if ($user_nicename) {
139
+ $description .= sprintf(__("By %s", 'simple-history'), $user_nicename);
140
+ $description .= "<br />";
141
  }
142
  if ($one_item->occasions) {
143
+ $description .= sprintf(__("%d occasions", 'simple-history'), sizeof($one_item->occasions));
144
+ $description .= "<br />";
145
  }
146
 
147
  $item_title = "$object_type \"{$object_name}\" {$one_item->action}";
164
  // not ok rss secret
165
  ?>
166
  <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
167
+ <channel>
168
+ <title><?php printf(__("Simple History for %s", 'simple-history'), get_bloginfo("name")) ?></title>
169
+ <description><?php printf(__("WordPress History for %s", 'simple-history'), get_bloginfo("name")) ?></description>
170
+ <link><?php echo get_bloginfo("siteurl") ?></link>
171
+ <atom:link href="<?php echo $self_link; ?>" rel="self" type="application/rss+xml" />
172
+ <item>
173
+ <title><?php _e("Wrong RSS secret", 'simple-history')?></title>
174
+ <description><?php _e("Your RSS secret for Simple History RSS feed is wrong. Please see WordPress settings for current link to the RSS feed.", 'simple-history')?></description>
175
+ <pubDate><?php echo date("D, d M Y H:i:s", time()) ?> GMT</pubDate>
176
+ <guid><?php echo get_bloginfo("siteurl") . "?simple-history-guid=wrong-secret" ?></guid>
177
+ </item>
178
  </channel>
179
  </rss>
180
  <?php
188
 
189
  function simple_history_admin_init() {
190
 
191
+ load_plugin_textdomain('simple-history', false, "/simple-history/languages");
192
+
193
  // posts
194
  add_action("save_post", "simple_history_save_post");
195
  add_action("transition_post_status", "simple_history_transition_post_status", 10, 3);
244
  ?>
245
 
246
  <input <?php echo $show_on_dashboard ? "checked='checked'" : "" ?> type="checkbox" value="1" name="simple_history_show_on_dashboard" id="simple_history_show_on_dashboard" />
247
+ <label for="simple_history_show_on_dashboard"><?php _e("on the dashboard", 'simple-history') ?></label>
248
 
249
  <br />
250
 
251
  <input <?php echo $show_as_page ? "checked='checked'" : "" ?> type="checkbox" value="1" name="simple_history_show_as_page" id="simple_history_show_as_page" />
252
+ <label for="simple_history_show_as_page"><?php _e("as a page under the tools menu", 'simple-history') ?></label>
253
 
254
  <?php
255
  }
279
  }
280
  if ($_GET["simple_history_rss_update_secret"]) {
281
  $create_new_secret = true;
282
+ echo "<p class='updated'>";
283
+ _e("Created new secret RSS adress", 'simple-history');
284
+ echo "</p>";
285
  }
286
 
287
  if ($create_new_secret) {
290
 
291
  $rss_address = simple_history_get_rss_address();
292
  echo "<code><a href='$rss_address'>$rss_address</a></code>";
293
+ echo "<br />";
294
+ _e("This is a secret RSS feed for Simple History. Only share the link with people you trust", 'simple-history');
295
  echo "<br />";
296
  $update_link = add_query_arg("simple_history_rss_update_secret", "1");
297
+ printf(__("You can <a href='%s'>generate a new address</a> for the RSS feed. This is useful if you think that the address has fallen into the wrong hands.", 'simple-history'), $update_link);
298
  }
299
 
300
  // @todo: move all add-related stuff to own file? there are so many of them.. kinda confusing, ey.
395
  $diff_removed = array_diff((array) $oldval, (array) $newval);
396
  $debug .= "\ndiff_added: " . print_r($diff_added, true);
397
  $debug .= "\ndiff_removed: " . print_r($diff_removed, true);
398
+ #b_fd($debug);
399
  }
400
  }
401
 
434
 
435
  function simple_history_add_attachment($attachment_id) {
436
  $post = get_post($attachment_id);
437
+ $post_title = urlencode(get_the_title($post->ID));
438
  simple_history_add("action=added&object_type=attachment&object_id=$attachment_id&object_name=$post_title");
439
  }
440
  function simple_history_edit_attachment($attachment_id) {
441
  // is this only being called if the title of the attachment is changed?!
442
  $post = get_post($attachment_id);
443
+ $post_title = urlencode(get_the_title($post->ID));
444
  simple_history_add("action=updated&object_type=attachment&object_id=$attachment_id&object_name=$post_title");
445
  }
446
  function simple_history_delete_attachment($attachment_id) {
447
  $post = get_post($attachment_id);
448
+ $post_title = urlencode(get_the_title($post->ID));
449
  simple_history_add("action=deleted&object_type=attachment&object_id=$attachment_id&object_name=$post_title");
450
  }
451
 
495
  if (wp_is_post_revision($post_id) == false) {
496
  $post = get_post($post_id);
497
  if ($post->post_status != "auto-draft" && $post->post_status != "inherit") {
498
+ $post_title = urlencode(get_the_title($post->ID));
499
  simple_history_add("action=deleted&object_type=post&object_subtype=" . $post->post_type . "&object_id=$post_id&object_name=$post_title");
500
  }
501
  }
557
  return;
558
  }
559
 
560
+ $post_title = get_the_title($post->ID);
561
+ $post_title = urlencode($post_title);
562
 
563
  simple_history_add("action=$action&object_type=$object_type&object_subtype=$object_subtype&object_id=$object_id&object_name=$post_title");
564
  }
808
  }
809
  $link = esc_html(add_query_arg("simple_history_user_to_show", ""));
810
  #echo "<li>Filter by user: </li>";
811
+ $str_users .= "<li $css><a href='$link'>" . __("By all users", 'simple-history') ."</a> | </li>";
812
  foreach ($arr_users as $user_id => $user_info) {
813
  $link = esc_html(add_query_arg("simple_history_user_to_show", $user_id));
814
  $css = "";
1025
  }
1026
  }
1027
  } else {
1028
+ $who .= "&lt;" . __("Unknown or deleted user", 'simple-history') ."&gt;";
1029
  }
1030
  $who .= "</span>";
1031
 
1044
  $post_out .= " <span class='simple-history-title'>&lt;unknown name&gt;</span>";
1045
  }
1046
  } else {
1047
+ #$title = esc_html($post->post_title);
1048
+ $title = get_the_title($post->ID);
1049
  $edit_link = get_edit_post_link($object_id, 'display');
1050
  $post_out .= " <a href='$edit_link'>";
1051
  $post_out .= "<span class='simple-history-title'>{$title}</span>";
1052
  $post_out .= "</a>";
1053
  }
1054
  if ("created" == $action) {
1055
+ $post_out .= " " . __("created", 'simple-history') . " ";
1056
  } elseif ("updated" == $action) {
1057
+ $post_out .= " " . __("updated", 'simple-history') . " ";
1058
  } elseif ("deleted" == $action) {
1059
+ $post_out .= " " . __("deleted", 'simple-history') . " ";
1060
  } else {
1061
  $post_out .= " $action";
1062
  }
1072
  $post = get_post($object_id);
1073
 
1074
  if ($post) {
1075
+ #$title = $post->post_title;
1076
+ $title = urlencode(get_the_title($post->ID));
1077
  $edit_link = get_edit_post_link($object_id, 'display');
1078
  $attachment_image_src = wp_get_attachment_image_src($object_id, array(50,50), true);
1079
  $attachment_image = "";
1145
  }
1146
 
1147
  if ("created" == $action) {
1148
+ $user_out .= " " . __("added", 'simple-history') . " ";
1149
  } elseif ("updated" == $action) {
1150
+ $user_out .= " " . __("updated", 'simple-history') . " " ;
1151
  } elseif ("deleted" == $action) {
1152
+ $user_out .= " " . __("deleted", 'simple-history') . " ";
1153
  } elseif ("logged_in" == $action) {
1154
+ $user_out .= " " . __("logged in", 'simple-history') . " ";
1155
  } elseif ("logged_out" == $action) {
1156
+ $user_out .= " " . __("logged out", 'simple-history') . " ";
1157
  } else {
1158
  $user_out .= " $action";
1159
  }
1187
  if ($num_occasions > 0) {
1188
  echo "<div class='third'>";
1189
  if ($num_occasions == 1) {
1190
+ $one_occasion = __("+ 1 occasion", 'simple-history');
1191
+ echo "<a class='simple-history-occasion-show' href='#'>$one_occasion</a>";
1192
  } else {
1193
+ $many_occasion = sprintf(__("+ %d occasions", 'simple-history'), $num_occasions);
1194
+ echo "<a class='simple-history-occasion-show' href='#'>$many_occasion</a>";
1195
  }
1196
  echo "<ul class='simple-history-occasions hidden'>";
1197
  foreach ($occasions as $one_occasion) {
1218
  }
1219
 
1220
  if (!$args["is_ajax"]) {
1221
+ $show_more = sprintf(__("Show %d more", 'simple-history'), $args[items]);
1222
+ $loading = __("Loading...", 'simple-history');
1223
+ $no_more_found = __("No more history items found.", 'simple-history');
1224
  echo "</ol>
1225
  </div>
1226
+ <p id='simple-history-load-more'><a href='#'>$show_more</a></p>
1227
+ <p class='hidden' id='simple-history-load-more-loading'>$loading</p>
1228
+ <p class='hidden' id='simple-history-no-more-items'>$no_more_found</p>
1229
  ";
1230
  }
1231
  } else {
1232
  if ($args["is_ajax"]) {
1233
  echo "simpleHistoryNoMoreItems";
1234
  } else {
1235
+ $no_found = __("No history items found.", 'simple-history');
1236
+ $please_note = __("Please note that Simple History only records things that happen after this plugin have been installed.", 'simple-history');
1237
+ echo "<p>$no_found</p>";
1238
+ echo "<p>$please_note</p>";
1239
  }
1240
 
1241
  }
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: trunk
8
 
9
  View changes made by users within WordPress. It’s a history/change log/audit/recent changes-plugin.
10
 
@@ -64,6 +64,11 @@ to only use the secret RSS feed to keep track of the changes on you web site/Wor
64
 
65
  == Changelog ==
66
 
 
 
 
 
 
67
  = 0.3.4 =
68
  - RSS-feed is now valid, and should work at more places (could be broken because of html entities and stuff)
69
 
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.5
8
 
9
  View changes made by users within WordPress. It’s a history/change log/audit/recent changes-plugin.
10
 
64
 
65
  == Changelog ==
66
 
67
+ = 0.3.5 =
68
+ - using get_the_title instead of fetching the title directly from the post object. should make plugins like qtranslate work a bit better.
69
+ - preparing for translation by using __() and _e() functions. POT-file will be available shortly.
70
+ - Could get cryptiug "simpleHistoryNoMoreItems"-text when loading a type with no items.
71
+
72
  = 0.3.4 =
73
  - RSS-feed is now valid, and should work at more places (could be broken because of html entities and stuff)
74
 
scripts.js CHANGED
@@ -25,10 +25,16 @@ jQuery(".simple-history-filter a").live("click", function() {
25
  "user": jQuery(".simple-history-filter-user li.selected a").text()
26
  };
27
  jQuery.post(ajaxurl, data, function(data, textStatus, XMLHttpRequest){
28
- $ol.html(data);
29
- $ol.fadeIn("fast");
30
- $wrapper.height("auto");
31
- jQuery("#simple-history-load-more").fadeIn("fast");
 
 
 
 
 
 
32
  });
33
 
34
  return false;
25
  "user": jQuery(".simple-history-filter-user li.selected a").text()
26
  };
27
  jQuery.post(ajaxurl, data, function(data, textStatus, XMLHttpRequest){
28
+ if (data == "simpleHistoryNoMoreItems") {
29
+ jQuery("#simple-history-load-more,#simple-history-load-more-loading").hide();
30
+ jQuery("#simple-history-no-more-items").show();
31
+ jQuery("#simple-history-ol-wrapper").height("auto");
32
+ } else {
33
+ $ol.html(data);
34
+ $ol.fadeIn("fast");
35
+ $wrapper.height("auto");
36
+ jQuery("#simple-history-load-more").fadeIn("fast");
37
+ }
38
  });
39
 
40
  return false;