Simple History - Version 1.0.1

Version Description

  • The pagination no longer disappear after clickin "occasions"
  • Fixed: AJAX loading of new history items didn't work.
  • New filter: simple_history_view_history_capability. Default is "edit_pages". Modify this to change what cabability is required to view the history.
  • Modified: styles and scripts are only added on pages that use/show Simple History
  • Updated: new POT file. So translators my want to update their translations...
Download this release

Release Info

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

Code changes from version 1.0 to 1.0.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.0
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.0");
31
  define( "SIMPLE_HISTORY_NAME", "Simple History");
32
  define( "SIMPLE_HISTORY_URL", WP_PLUGIN_URL . '/simple-history/');
33
 
@@ -37,20 +37,23 @@ define( "SIMPLE_HISTORY_URL", WP_PLUGIN_URL . '/simple-history/');
37
  class simple_history {
38
 
39
  var
40
- $plugin_foldername_and_filename;
 
41
 
42
  static $pager_size = 5;
43
 
44
  function __construct() {
45
 
46
- add_action( 'admin_init', array($this, 'admin_init') ); // start listening to changes
47
- add_action( 'init', array($this, 'init') ); // start listening to changes
48
  add_action( 'admin_menu', array($this, 'admin_menu') );
49
  add_action( 'wp_dashboard_setup', array($this, 'wp_dashboard_setup') );
50
  add_action( 'wp_ajax_simple_history_ajax', array($this, 'ajax') );
51
  add_filter( 'plugin_action_links_simple-history/index.php', array($this, "plugin_action_links"), 10, 4);
52
 
53
  $this->plugin_foldername_and_filename = basename(dirname(__FILE__)) . "/" . basename(__FILE__);
 
 
54
 
55
  }
56
 
@@ -63,7 +66,7 @@ define( "SIMPLE_HISTORY_URL", WP_PLUGIN_URL . '/simple-history/');
63
 
64
  function wp_dashboard_setup() {
65
  if (simple_history_setting_show_on_dashboard()) {
66
- if (current_user_can("edit_pages")) {
67
  wp_add_dashboard_widget("simple_history_dashboard_widget", __("History", 'simple-history'), "simple_history_dashboard");
68
  }
69
  }
@@ -72,7 +75,7 @@ define( "SIMPLE_HISTORY_URL", WP_PLUGIN_URL . '/simple-history/');
72
  // stuff that happens in the admin
73
  // "admin_init is triggered before any other hook when a user access the admin area"
74
  function admin_init() {
75
-
76
  // posts
77
  add_action("save_post", "simple_history_save_post");
78
  add_action("transition_post_status", "simple_history_transition_post_status", 10, 3);
@@ -109,12 +112,19 @@ define( "SIMPLE_HISTORY_URL", WP_PLUGIN_URL . '/simple-history/');
109
  // check if database needs upgrade
110
  $this->check_upgrade_stuff();
111
 
112
-
113
- wp_enqueue_style( "simple_history_styles", SIMPLE_HISTORY_URL . "styles.css", false, SIMPLE_HISTORY_VERSION );
114
- wp_enqueue_script("simple_history", SIMPLE_HISTORY_URL . "scripts.js", array("jquery"), SIMPLE_HISTORY_VERSION);
115
 
116
  }
117
 
 
 
 
 
 
 
 
 
118
  // WordPress Core updated
119
  function action_core_updated($wp_version) {
120
  simple_history_add("action=" . __( 'updated', 'simple-history' ) . "&object_type=" . __('WordPress Core', 'simple-history') . "&object_id=wordpress_core&object_name=".sprintf(__('WordPress %1$s', 'simple-history'), $wp_version));
@@ -205,14 +215,14 @@ define( "SIMPLE_HISTORY_URL", WP_PLUGIN_URL . '/simple-history/');
205
 
206
  // show as page?
207
  if (simple_history_setting_show_as_page()) {
208
- add_dashboard_page(SIMPLE_HISTORY_NAME, __("History", 'simple-history'), "edit_pages", "simple_history_page", "simple_history_management_page");
209
  }
210
 
211
  // add page for settings
212
  $show_settings_page = TRUE;
213
  $show_settings_page = apply_filters("simple_history_show_settings_page", $show_settings_page);
214
  if ($show_settings_page) {
215
- add_options_page(__('Simple History Settings', "simple-history"), SIMPLE_HISTORY_NAME, 'edit_pages', "simple_history_settings_menu_slug", array($this, 'settings_page'));
216
  }
217
 
218
  add_settings_section("simple_history_settings_section", __("", "simple-history"), "simple_history_settings_page", "simple_history_settings_menu_slug");
@@ -362,9 +372,9 @@ define( "SIMPLE_HISTORY_URL", WP_PLUGIN_URL . '/simple-history/');
362
  "filtered_items_total_pages" => 0
363
  );
364
 
365
- ob_start();
366
- simple_history_print_history($args);
367
- $return = ob_get_clean();
368
  if ("noMoreItems" == $return) {
369
  $arr_json["status"] = "error";
370
  $arr_json["error"] = "noMoreItems";
@@ -377,7 +387,7 @@ define( "SIMPLE_HISTORY_URL", WP_PLUGIN_URL . '/simple-history/');
377
  $arr_json["filtered_items_total_pages"] = ceil($arr_json["filtered_items_total_count"] / simple_history::$pager_size);
378
  }
379
 
380
- header("text/json");
381
  echo json_encode($arr_json);
382
 
383
  exit;
@@ -580,7 +590,6 @@ function simple_history_update_option($option, $oldval, $newval) {
580
  $diff_removed = array_diff((array) $oldval, (array) $newval);
581
  $debug .= "\ndiff_added: " . print_r($diff_added, true);
582
  $debug .= "\ndiff_removed: " . print_r($diff_removed, true);
583
- #b_fd($debug);
584
  }
585
  }
586
 
@@ -596,13 +605,6 @@ function simple_history_updated_option($option, $oldval, $newval) {
596
 
597
  }
598
 
599
- // debug to file
600
- // short for "bonny_file_debug" :)
601
- function b_fd($str) {
602
- $file = "/Users/bonny/Dropbox/localhost/wordpress3/wp-content/plugins/simple-history/debug.txt";
603
- #$f = fopen($file, "+a");
604
- file_put_contents($file, $str, FILE_APPEND);
605
- }
606
 
607
  /*
608
  function simple_history_updated_option2($option, $oldval) {
@@ -812,7 +814,7 @@ function simple_history_purge_db() {
812
  function simple_history_dashboard() {
813
  simple_history_purge_db();
814
  simple_history_print_nav();
815
- simple_history_print_history();
816
  echo simple_history_get_pagination();
817
  }
818
 
@@ -827,7 +829,7 @@ function simple_history_management_page() {
827
  <h2><?php echo __("History", 'simple-history') ?></h2>
828
  <?php
829
  simple_history_print_nav(array("from_page=1"));
830
- simple_history_print_history(array("items" => 5, "from_page" => "1"));
831
  echo simple_history_get_pagination();
832
  ?>
833
  </div>
@@ -1190,8 +1192,8 @@ function simple_history_get_items_array($args = "") {
1190
 
1191
  }
1192
 
1193
- // output the log
1194
- // take filtrering into consideration
1195
  function simple_history_print_history($args = null) {
1196
 
1197
  $arr_events = simple_history_get_items_array($args);
@@ -1205,11 +1207,11 @@ function simple_history_print_history($args = null) {
1205
  );
1206
 
1207
  $args = wp_parse_args( $args, $defaults );
1208
-
1209
  if ($arr_events) {
1210
  if (!$args["is_ajax"]) {
1211
  // if not ajax, print the div
1212
- echo "<div class='simple-history-ol-wrapper'><ol class='simple-history'>";
1213
  }
1214
 
1215
  $loopNum = 0;
@@ -1243,9 +1245,9 @@ function simple_history_print_history($args = null) {
1243
  $css .= ' simple-history-has-occasions ';
1244
  }
1245
 
1246
- echo "<li class='$css'>";
1247
 
1248
- echo "<div class='first'>";
1249
 
1250
  // who performed the action
1251
  $who = "";
@@ -1259,7 +1261,7 @@ function simple_history_print_history($args = null) {
1259
  $user_avatar = get_avatar("", "32");
1260
  $who_avatar = sprintf('<span class="simple-history-who-avatar">%1$s</span>', $user_avatar);
1261
  }
1262
- echo $who_avatar;
1263
 
1264
  // section with info about the user who did something
1265
  $who .= "<span class='who'>";
@@ -1329,7 +1331,7 @@ function simple_history_print_history($args = null) {
1329
  //}
1330
 
1331
  $post_out = ucfirst($post_out);
1332
- echo $post_out;
1333
 
1334
 
1335
  } elseif ("attachment" == $object_type_lcase) {
@@ -1363,7 +1365,7 @@ function simple_history_print_history($args = null) {
1363
  $attachment_out .= " $action ";
1364
 
1365
  $attachment_out = ucfirst($attachment_out);
1366
- echo $attachment_out;
1367
 
1368
  } elseif ("user" == $object_type_lcase) {
1369
  $user_out = "";
@@ -1417,12 +1419,12 @@ function simple_history_print_history($args = null) {
1417
  //}
1418
 
1419
  $user_out = ucfirst($user_out);
1420
- echo $user_out;
1421
 
1422
  } elseif ("comment" == $object_type_lcase) {
1423
 
1424
  $comment_link = get_edit_comment_link($object_id);
1425
- echo esc_html(ucwords($object_type)) . " " . esc_html($object_subtype) . " <a href='$comment_link'><span class='simple-history-title'>" . esc_html($object_name) . "\"</span></a> " . esc_html($action);
1426
 
1427
  } else {
1428
 
@@ -1445,46 +1447,46 @@ function simple_history_print_history($args = null) {
1445
  default:
1446
  $unknown_action = $unknown_action; // dah!
1447
  }
1448
- echo esc_html(ucwords($object_type)) . " " . esc_html($object_subtype) . " <span class='simple-history-title'>\"" . esc_html($object_name) . "\"</span> " . esc_html($unknown_action);
1449
 
1450
  }
1451
- echo "</div>";
1452
 
1453
- echo "<div class='second'>";
1454
  // when
1455
  $date_i18n_date = date_i18n(get_option('date_format'), strtotime($one_row->date), $gmt=false);
1456
  $date_i18n_time = date_i18n(get_option('time_format'), strtotime($one_row->date), $gmt=false);
1457
  $now = strtotime(current_time("mysql"));
1458
  $diff_str = sprintf( __('<span class="when">%1$s ago</span> by %2$s'), human_time_diff(strtotime($one_row->date), $now), $who );
1459
- echo $diff_str;
1460
- echo "<span class='when_detail'>".sprintf(__('%s at %s', 'simple-history'), $date_i18n_date, $date_i18n_time)."</span>";
1461
- echo "</div>";
1462
 
1463
  // occasions
1464
  if ($num_occasions > 0) {
1465
- echo "<div class='third'>";
1466
  if ($num_occasions == 1) {
1467
  $one_occasion = __("+ 1 occasion", 'simple-history');
1468
- echo "<a class='simple-history-occasion-show' href='#'>$one_occasion</a>";
1469
  } else {
1470
  $many_occasion = sprintf(__("+ %d occasions", 'simple-history'), $num_occasions);
1471
- echo "<a class='simple-history-occasion-show' href='#'>$many_occasion</a>";
1472
  }
1473
- echo "<ul class='simple-history-occasions hidden'>";
1474
  foreach ($occasions as $one_occasion) {
1475
- echo "<li>";
1476
  $date_i18n_date = date_i18n(get_option('date_format'), strtotime($one_occasion->date), $gmt=false);
1477
  $date_i18n_time = date_i18n(get_option('time_format'), strtotime($one_occasion->date), $gmt=false);
1478
- echo sprintf( __('%s ago (%s at %s)', "simple-history"), human_time_diff(strtotime($one_occasion->date), $now), $date_i18n_date, $date_i18n_time );
1479
 
1480
- echo "</li>";
1481
  }
1482
- echo "</ul>";
1483
- echo "</div>";
1484
  }
1485
 
1486
 
1487
- echo "</li>";
1488
 
1489
  $loopNum++;
1490
 
@@ -1493,7 +1495,7 @@ function simple_history_print_history($args = null) {
1493
 
1494
  // if $loopNum == 0 no items where found for this page
1495
  if ($loopNum == 0) {
1496
- echo "noMoreItems";
1497
  }
1498
 
1499
  if (!$args["is_ajax"]) {
@@ -1512,7 +1514,7 @@ function simple_history_print_history($args = null) {
1512
  $view_rss = __("RSS feed", 'simple-history');
1513
  $view_rss_link = simple_history_get_rss_address();
1514
  $str_show = __("Show", 'simple-history');
1515
- echo "</ol>
1516
  </div>
1517
  <!--
1518
  <p class='simple-history-load-more'>$show_more<input type='button' value='$str_show' class='button' /></p>
@@ -1528,15 +1530,16 @@ function simple_history_print_history($args = null) {
1528
  } else {
1529
 
1530
  if ($args["is_ajax"]) {
1531
- echo "noMoreItems";
1532
  } else {
1533
  $no_found = __("No history items found.", 'simple-history');
1534
  $please_note = __("Please note that Simple History only records things that happen after this plugin have been installed.", 'simple-history');
1535
- echo "<p>$no_found</p>";
1536
- echo "<p>$please_note</p>";
1537
  }
1538
 
1539
  }
 
1540
  }
1541
 
1542
  // called when saving an options page
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.0.1
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.0.1");
31
  define( "SIMPLE_HISTORY_NAME", "Simple History");
32
  define( "SIMPLE_HISTORY_URL", WP_PLUGIN_URL . '/simple-history/');
33
 
37
  class simple_history {
38
 
39
  var
40
+ $plugin_foldername_and_filename,
41
+ $view_history_capability;
42
 
43
  static $pager_size = 5;
44
 
45
  function __construct() {
46
 
47
+ add_action( 'admin_init', array($this, 'admin_init') );
48
+ add_action( 'init', array($this, 'init') );
49
  add_action( 'admin_menu', array($this, 'admin_menu') );
50
  add_action( 'wp_dashboard_setup', array($this, 'wp_dashboard_setup') );
51
  add_action( 'wp_ajax_simple_history_ajax', array($this, 'ajax') );
52
  add_filter( 'plugin_action_links_simple-history/index.php', array($this, "plugin_action_links"), 10, 4);
53
 
54
  $this->plugin_foldername_and_filename = basename(dirname(__FILE__)) . "/" . basename(__FILE__);
55
+ $this->view_history_capability = "edit_pages";
56
+ $this->view_history_capability = apply_filters("simple_history_view_history_capability", $this->view_history_capability);
57
 
58
  }
59
 
66
 
67
  function wp_dashboard_setup() {
68
  if (simple_history_setting_show_on_dashboard()) {
69
+ if (current_user_can($this->view_history_capability)) {
70
  wp_add_dashboard_widget("simple_history_dashboard_widget", __("History", 'simple-history'), "simple_history_dashboard");
71
  }
72
  }
75
  // stuff that happens in the admin
76
  // "admin_init is triggered before any other hook when a user access the admin area"
77
  function admin_init() {
78
+
79
  // posts
80
  add_action("save_post", "simple_history_save_post");
81
  add_action("transition_post_status", "simple_history_transition_post_status", 10, 3);
112
  // check if database needs upgrade
113
  $this->check_upgrade_stuff();
114
 
115
+ // add scripts and styles
116
+ add_action("admin_enqueue_scripts", array($this, "admin_enqueue"));
 
117
 
118
  }
119
 
120
+ // enqueue styles and scripts, but only to our own pages
121
+ function admin_enqueue($hook) {
122
+ if ( ($hook == "settings_page_simple_history_settings_menu_slug") || (simple_history_setting_show_on_dashboard() && $hook == "index.php") || (simple_history_setting_show_as_page() && $hook == "dashboard_page_simple_history_page")) {
123
+ wp_enqueue_style( "simple_history_styles", SIMPLE_HISTORY_URL . "styles.css", false, SIMPLE_HISTORY_VERSION );
124
+ wp_enqueue_script("simple_history", SIMPLE_HISTORY_URL . "scripts.js", array("jquery"), SIMPLE_HISTORY_VERSION);
125
+ }
126
+ }
127
+
128
  // WordPress Core updated
129
  function action_core_updated($wp_version) {
130
  simple_history_add("action=" . __( 'updated', 'simple-history' ) . "&object_type=" . __('WordPress Core', 'simple-history') . "&object_id=wordpress_core&object_name=".sprintf(__('WordPress %1$s', 'simple-history'), $wp_version));
215
 
216
  // show as page?
217
  if (simple_history_setting_show_as_page()) {
218
+ add_dashboard_page(SIMPLE_HISTORY_NAME, __("History", 'simple-history'), $this->view_history_capability, "simple_history_page", "simple_history_management_page");
219
  }
220
 
221
  // add page for settings
222
  $show_settings_page = TRUE;
223
  $show_settings_page = apply_filters("simple_history_show_settings_page", $show_settings_page);
224
  if ($show_settings_page) {
225
+ add_options_page(__('Simple History Settings', "simple-history"), SIMPLE_HISTORY_NAME, $this->view_history_capability, "simple_history_settings_menu_slug", array($this, 'settings_page'));
226
  }
227
 
228
  add_settings_section("simple_history_settings_section", __("", "simple-history"), "simple_history_settings_page", "simple_history_settings_menu_slug");
372
  "filtered_items_total_pages" => 0
373
  );
374
 
375
+ // ob_start();
376
+ $return = simple_history_print_history($args);
377
+ // $return = ob_get_clean();
378
  if ("noMoreItems" == $return) {
379
  $arr_json["status"] = "error";
380
  $arr_json["error"] = "noMoreItems";
387
  $arr_json["filtered_items_total_pages"] = ceil($arr_json["filtered_items_total_count"] / simple_history::$pager_size);
388
  }
389
 
390
+ header("Content-type: application/json");
391
  echo json_encode($arr_json);
392
 
393
  exit;
590
  $diff_removed = array_diff((array) $oldval, (array) $newval);
591
  $debug .= "\ndiff_added: " . print_r($diff_added, true);
592
  $debug .= "\ndiff_removed: " . print_r($diff_removed, true);
 
593
  }
594
  }
595
 
605
 
606
  }
607
 
 
 
 
 
 
 
 
608
 
609
  /*
610
  function simple_history_updated_option2($option, $oldval) {
814
  function simple_history_dashboard() {
815
  simple_history_purge_db();
816
  simple_history_print_nav();
817
+ echo simple_history_print_history();
818
  echo simple_history_get_pagination();
819
  }
820
 
829
  <h2><?php echo __("History", 'simple-history') ?></h2>
830
  <?php
831
  simple_history_print_nav(array("from_page=1"));
832
+ echo simple_history_print_history(array("items" => 5, "from_page" => "1"));
833
  echo simple_history_get_pagination();
834
  ?>
835
  </div>
1192
 
1193
  }
1194
 
1195
+ // return the log
1196
+ // taking filtrering into consideration
1197
  function simple_history_print_history($args = null) {
1198
 
1199
  $arr_events = simple_history_get_items_array($args);
1207
  );
1208
 
1209
  $args = wp_parse_args( $args, $defaults );
1210
+ $output = "";
1211
  if ($arr_events) {
1212
  if (!$args["is_ajax"]) {
1213
  // if not ajax, print the div
1214
+ $output .= "<div class='simple-history-ol-wrapper'><ol class='simple-history'>";
1215
  }
1216
 
1217
  $loopNum = 0;
1245
  $css .= ' simple-history-has-occasions ';
1246
  }
1247
 
1248
+ $output .= "<li class='$css'>";
1249
 
1250
+ $output .= "<div class='first'>";
1251
 
1252
  // who performed the action
1253
  $who = "";
1261
  $user_avatar = get_avatar("", "32");
1262
  $who_avatar = sprintf('<span class="simple-history-who-avatar">%1$s</span>', $user_avatar);
1263
  }
1264
+ $output .= $who_avatar;
1265
 
1266
  // section with info about the user who did something
1267
  $who .= "<span class='who'>";
1331
  //}
1332
 
1333
  $post_out = ucfirst($post_out);
1334
+ $output .= $post_out;
1335
 
1336
 
1337
  } elseif ("attachment" == $object_type_lcase) {
1365
  $attachment_out .= " $action ";
1366
 
1367
  $attachment_out = ucfirst($attachment_out);
1368
+ $output .= $attachment_out;
1369
 
1370
  } elseif ("user" == $object_type_lcase) {
1371
  $user_out = "";
1419
  //}
1420
 
1421
  $user_out = ucfirst($user_out);
1422
+ $output .= $user_out;
1423
 
1424
  } elseif ("comment" == $object_type_lcase) {
1425
 
1426
  $comment_link = get_edit_comment_link($object_id);
1427
+ $output .= esc_html(ucwords($object_type)) . " " . esc_html($object_subtype) . " <a href='$comment_link'><span class='simple-history-title'>" . esc_html($object_name) . "\"</span></a> " . esc_html($action);
1428
 
1429
  } else {
1430
 
1447
  default:
1448
  $unknown_action = $unknown_action; // dah!
1449
  }
1450
+ $output .= esc_html(ucwords($object_type)) . " " . esc_html($object_subtype) . " <span class='simple-history-title'>\"" . esc_html($object_name) . "\"</span> " . esc_html($unknown_action);
1451
 
1452
  }
1453
+ $output .= "</div>";
1454
 
1455
+ $output .= "<div class='second'>";
1456
  // when
1457
  $date_i18n_date = date_i18n(get_option('date_format'), strtotime($one_row->date), $gmt=false);
1458
  $date_i18n_time = date_i18n(get_option('time_format'), strtotime($one_row->date), $gmt=false);
1459
  $now = strtotime(current_time("mysql"));
1460
  $diff_str = sprintf( __('<span class="when">%1$s ago</span> by %2$s'), human_time_diff(strtotime($one_row->date), $now), $who );
1461
+ $output .= $diff_str;
1462
+ $output .= "<span class='when_detail'>".sprintf(__('%s at %s', 'simple-history'), $date_i18n_date, $date_i18n_time)."</span>";
1463
+ $output .= "</div>";
1464
 
1465
  // occasions
1466
  if ($num_occasions > 0) {
1467
+ $output .= "<div class='third'>";
1468
  if ($num_occasions == 1) {
1469
  $one_occasion = __("+ 1 occasion", 'simple-history');
1470
+ $output .= "<a class='simple-history-occasion-show' href='#'>$one_occasion</a>";
1471
  } else {
1472
  $many_occasion = sprintf(__("+ %d occasions", 'simple-history'), $num_occasions);
1473
+ $output .= "<a class='simple-history-occasion-show' href='#'>$many_occasion</a>";
1474
  }
1475
+ $output .= "<ul class='simple-history-occasions hidden'>";
1476
  foreach ($occasions as $one_occasion) {
1477
+ $output .= "<li>";
1478
  $date_i18n_date = date_i18n(get_option('date_format'), strtotime($one_occasion->date), $gmt=false);
1479
  $date_i18n_time = date_i18n(get_option('time_format'), strtotime($one_occasion->date), $gmt=false);
1480
+ $output .= sprintf( __('%s ago (%s at %s)', "simple-history"), human_time_diff(strtotime($one_occasion->date), $now), $date_i18n_date, $date_i18n_time );
1481
 
1482
+ $output .= "</li>";
1483
  }
1484
+ $output .= "</ul>";
1485
+ $output .= "</div>";
1486
  }
1487
 
1488
 
1489
+ $output .= "</li>";
1490
 
1491
  $loopNum++;
1492
 
1495
 
1496
  // if $loopNum == 0 no items where found for this page
1497
  if ($loopNum == 0) {
1498
+ $output .= "noMoreItems";
1499
  }
1500
 
1501
  if (!$args["is_ajax"]) {
1514
  $view_rss = __("RSS feed", 'simple-history');
1515
  $view_rss_link = simple_history_get_rss_address();
1516
  $str_show = __("Show", 'simple-history');
1517
+ $output .= "</ol>
1518
  </div>
1519
  <!--
1520
  <p class='simple-history-load-more'>$show_more<input type='button' value='$str_show' class='button' /></p>
1530
  } else {
1531
 
1532
  if ($args["is_ajax"]) {
1533
+ $output .= "noMoreItems";
1534
  } else {
1535
  $no_found = __("No history items found.", 'simple-history');
1536
  $please_note = __("Please note that Simple History only records things that happen after this plugin have been installed.", 'simple-history');
1537
+ $output .= "<p>$no_found</p>";
1538
+ $output .= "<p>$please_note</p>";
1539
  }
1540
 
1541
  }
1542
+ return $output;
1543
  }
1544
 
1545
  // called when saving an options page
languages/simple-history-de_DE.mo ADDED
Binary file
languages/simple-history-de_DE.po ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of the WordPress plugin by .
2
+ # Copyright (C) 2010
3
+ # This file is distributed under the same license as the package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: Simple History 0.4\n"
9
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/simple-history\n"
10
+ "POT-Creation-Date: 2010-09-19 18:24+0000\n"
11
+ "PO-Revision-Date: 2012-02-22 14:15+0100\n"
12
+ "Last-Translator: Ralph Stenzel <ralph@klein-aber-fein.de>\n"
13
+ "Language-Team: Ralph Stenzel <ralph@klein-aber-fein.de>\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "X-Poedit-Language: German\n"
18
+ "X-Poedit-Country: GERMANY\n"
19
+ "X-Poedit-SourceCharset: utf-8\n"
20
+
21
+ #: index.php:126
22
+ #: index.php:168
23
+ #, php-format
24
+ msgid "Simple History for %s"
25
+ msgstr "Simple History für %s"
26
+
27
+ #: index.php:127
28
+ #: index.php:169
29
+ #, php-format
30
+ msgid "WordPress History for %s"
31
+ msgstr "WordPress History für %s"
32
+
33
+ #: index.php:139
34
+ #, php-format
35
+ msgid "By %s"
36
+ msgstr "Von %s"
37
+
38
+ #: index.php:143
39
+ #, php-format
40
+ msgid "%d occasions"
41
+ msgstr "%d Fälle"
42
+
43
+ #: index.php:173
44
+ msgid "Wrong RSS secret"
45
+ msgstr "Falsche RSS-Geheimadresse"
46
+
47
+ #: index.php:174
48
+ msgid "Your RSS secret for Simple History RSS feed is wrong. Please see WordPress settings for current link to the RSS feed."
49
+ msgstr "Ihre RSS-Geheimadresse für den Simple History RSS-Feed ist falsch. Bitte überprüfen Sie die WordPress-Einstellungen hinsichtlich des momentanen Links zum RSS-Feed."
50
+
51
+ #: index.php:247
52
+ msgid "on the dashboard"
53
+ msgstr "auf dem Armaturenbrett (Dashboard)"
54
+
55
+ #: index.php:252
56
+ msgid "as a page under the tools menu"
57
+ msgstr "als eine Seite im Werkzeuge-Menü"
58
+
59
+ #: index.php:283
60
+ msgid "Created new secret RSS adress"
61
+ msgstr "Neue geheime RSS-Adresse erstellt"
62
+
63
+ #: index.php:294
64
+ msgid "This is a secret RSS feed for Simple History. Only share the link with people you trust"
65
+ msgstr "Dies ist ein vertraulicher RSS-Feed für Simple History. Teilen Sie das Link nur mit Leuten Ihres Vertrauens!"
66
+
67
+ #: index.php:297
68
+ #, php-format
69
+ msgid "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."
70
+ msgstr "Sie können für den RSS-Feed <a href='%s'>eine neue Adresse erstellen</a> lassen. Dies ist hilfreich wenn Sie den Verdacht haben, daß die bisherige Adresse in falsche Hände gekommen sein könnte."
71
+
72
+ #: index.php:320
73
+ #: index.php:335
74
+ #: index.php:366
75
+ #, php-format
76
+ msgid "From %1$s on %2$s"
77
+ msgstr "Von %1$s am %2$s"
78
+
79
+ #: index.php:811
80
+ msgid "By all users"
81
+ msgstr "Von allen Benutzern"
82
+
83
+ #: index.php:1031
84
+ msgid "Unknown or deleted user"
85
+ msgstr "Unbekannter oder gelöschter Benutzer"
86
+
87
+ #: index.php:1058
88
+ msgid "created"
89
+ msgstr "erzeugt"
90
+
91
+ #: index.php:1060
92
+ #: index.php:1153
93
+ msgid "updated"
94
+ msgstr "aktualisiert"
95
+
96
+ #: index.php:1062
97
+ #: index.php:1155
98
+ msgid "deleted"
99
+ msgstr "gelöscht"
100
+
101
+ #: index.php:1151
102
+ msgid "added"
103
+ msgstr "hinzugefügt"
104
+
105
+ #: index.php:1157
106
+ msgid "logged in"
107
+ msgstr "angemeldet"
108
+
109
+ #: index.php:1159
110
+ msgid "logged out"
111
+ msgstr "abgemeldet"
112
+
113
+ #: index.php:1193
114
+ msgid "+ 1 occasion"
115
+ msgstr "+ 1 Fall"
116
+
117
+ #: index.php:1196
118
+ #, php-format
119
+ msgid "+ %d occasions"
120
+ msgstr "+ %d Fälle"
121
+
122
+ #: index.php:1225
123
+ #, php-format
124
+ msgid "Show %d more"
125
+ msgstr "Zeige %d weitere"
126
+
127
+ #: index.php:1226
128
+ msgid "Loading..."
129
+ msgstr "Lade..."
130
+
131
+ #: index.php:1227
132
+ msgid "No more history items found."
133
+ msgstr "Keine weiteren Vorfälle gefunden."
134
+
135
+ #: index.php:1228
136
+ msgid "Simple History RSS feed"
137
+ msgstr "Simple History RSS-Feed"
138
+
139
+ #: index.php:1244
140
+ msgid "No history items found."
141
+ msgstr "Keine Vorfälle gefunden."
142
+
143
+ #: index.php:1245
144
+ msgid "Please note that Simple History only records things that happen after this plugin have been installed."
145
+ msgstr "Bitte beachten Sie, daß Simple History nur Vorfälle aufzeichnet, die nach der Installation des Plugins passiert sind."
146
+
languages/simple-history-sv_SE.mo ADDED
Binary file
languages/simple-history-sv_SE.po ADDED
@@ -0,0 +1,374 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Simple History\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-02-07 13:48+0100\n"
6
+ "PO-Revision-Date: 2012-02-09 13:50+0100\n"
7
+ "Last-Translator: Jocke Gustin <jocke.gustin@gmail.com>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Swedish\n"
14
+ "X-Poedit-Country: SWEDEN\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: ..\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: index.php:132
23
+ #: index.php:174
24
+ #: index_orig.php:132
25
+ #: index_orig.php:174
26
+ #, php-format
27
+ #@ simple-history
28
+ msgid "Simple History for %s"
29
+ msgstr "Historik för %s"
30
+
31
+ #: index.php:133
32
+ #: index.php:175
33
+ #: index_orig.php:133
34
+ #: index_orig.php:175
35
+ #, php-format
36
+ #@ simple-history
37
+ msgid "WordPress History for %s"
38
+ msgstr "WordPress historik för %s"
39
+
40
+ #: index.php:145
41
+ #: index.php:1201
42
+ #: index_orig.php:145
43
+ #, php-format
44
+ #@ simple-history
45
+ msgid "By %s"
46
+ msgstr "Av %s"
47
+
48
+ #: index.php:149
49
+ #: index_orig.php:149
50
+ #, php-format
51
+ #@ simple-history
52
+ msgid "%d occasions"
53
+ msgstr "%d tillfällen"
54
+
55
+ #: index.php:179
56
+ #: index_orig.php:179
57
+ #@ simple-history
58
+ msgid "Wrong RSS secret"
59
+ msgstr "Fel RSS lösenord"
60
+
61
+ #: index.php:180
62
+ #: index_orig.php:180
63
+ #@ simple-history
64
+ msgid "Your RSS secret for Simple History RSS feed is wrong. Please see WordPress settings for current link to the RSS feed."
65
+ msgstr "Ditt RSS lösenord är fel. Vänligen gå till WordPress inställningsmeny för en länk till RSS-feed."
66
+
67
+ #: index.php:254
68
+ #: index_orig.php:254
69
+ #@ simple-history
70
+ msgid "on the dashboard"
71
+ msgstr "på adminpanelen"
72
+
73
+ #: index.php:259
74
+ #: index_orig.php:259
75
+ #@ simple-history
76
+ msgid "as a page under the tools menu"
77
+ msgstr "som en sida under verktygsmenyn"
78
+
79
+ #: index.php:296
80
+ #: index_orig.php:296
81
+ #@ simple-history
82
+ msgid "Created new secret RSS adress"
83
+ msgstr "Skapade en ny hemlig RSS address"
84
+
85
+ #: index.php:307
86
+ #: index_orig.php:307
87
+ #@ simple-history
88
+ msgid "This is a secret RSS feed for Simple History. Only share the link with people you trust"
89
+ msgstr "Detta är en hemlig RSS feed för \"Webbplatshistorik\". Dela den bara med personer du litar på."
90
+
91
+ #: index.php:310
92
+ #: index_orig.php:310
93
+ #, fuzzy, php-format, php-format, php-format, php-format, php-format, php-format, php-format, php-format
94
+ #@ simple-history
95
+ msgid "You can <a href='%s#simple-history-settings-page'>generate a new address</a> for the RSS feed. This is useful if you think that the address has fallen into the wrong hands."
96
+ msgstr "Du kan <a href='%s'>generera en ny adress</a> för din hemliga RSS feed. Detta är användbart ifall du tror att adressen kommit i fel händer."
97
+
98
+ #: index.php:333
99
+ #: index.php:348
100
+ #: index.php:379
101
+ #: index_orig.php:333
102
+ #: index_orig.php:348
103
+ #: index_orig.php:379
104
+ #, php-format
105
+ #@ default
106
+ msgid "From %1$s on %2$s"
107
+ msgstr "Från %1$s klockan %2$s"
108
+
109
+ #: index.php:45
110
+ #: index.php:792
111
+ #: index_orig.php:786
112
+ #@ simple-history
113
+ msgid "By all users"
114
+ msgstr "Av alla användare"
115
+
116
+ #: index.php:811
117
+ #: index_orig.php:805
118
+ #@ simple-history
119
+ msgid "Search"
120
+ msgstr "Sök"
121
+
122
+ #: index.php:1051
123
+ #: index_orig.php:1041
124
+ #@ simple-history
125
+ msgid "Unknown or deleted user"
126
+ msgstr "Okänd eller borttagen användare"
127
+
128
+ #: index.php:476
129
+ #: index.php:549
130
+ #: index_orig.php:1069
131
+ #@ simple-history
132
+ msgid "created"
133
+ msgstr "skapades"
134
+
135
+ #: index.php:457
136
+ #: index.php:469
137
+ #: index.php:557
138
+ #: index_orig.php:1071
139
+ #: index_orig.php:1160
140
+ #@ simple-history
141
+ msgid "updated"
142
+ msgstr "uppdaterades"
143
+
144
+ #: index.php:351
145
+ #: index.php:462
146
+ #: index.php:483
147
+ #: index.php:512
148
+ #: index.php:554
149
+ #: index_orig.php:1073
150
+ #: index_orig.php:1162
151
+ #@ simple-history
152
+ msgid "deleted"
153
+ msgstr "kastades i papperskorgen"
154
+
155
+ #: index.php:451
156
+ #: index_orig.php:1158
157
+ #@ simple-history
158
+ msgid "added"
159
+ msgstr "lades till"
160
+
161
+ #: index_orig.php:1164
162
+ #@ simple-history
163
+ msgid "logged in"
164
+ msgstr "loggade in"
165
+
166
+ #: index_orig.php:1166
167
+ #@ simple-history
168
+ msgid "logged out"
169
+ msgstr "loggade ut"
170
+
171
+ #: index.php:1203
172
+ #: index_orig.php:1193
173
+ #, php-format
174
+ #@ default
175
+ msgid "%s ago"
176
+ msgstr "%s sedan"
177
+
178
+ #: index.php:1212
179
+ #: index_orig.php:1202
180
+ #@ simple-history
181
+ msgid "+ 1 occasion"
182
+ msgstr "+1 tillfälle"
183
+
184
+ #: index.php:1215
185
+ #: index_orig.php:1205
186
+ #, php-format
187
+ #@ simple-history
188
+ msgid "+ %d occasions"
189
+ msgstr "+ %d tillfällen"
190
+
191
+ #: index.php:1223
192
+ #: index_orig.php:1213
193
+ #, php-format
194
+ #@ simple-history
195
+ msgid "%s ago (%s at %s)"
196
+ msgstr "%s sedan (%s den %s)"
197
+
198
+ #: index.php:1246
199
+ #: index_orig.php:1236
200
+ #, fuzzy
201
+ #@ simple-history
202
+ msgid "Show 5 more"
203
+ msgstr "Visa 5 till"
204
+
205
+ #: index.php:1247
206
+ #: index_orig.php:1237
207
+ #, fuzzy
208
+ #@ simple-history
209
+ msgid "Show 15 more"
210
+ msgstr "Visa 15 till"
211
+
212
+ #: index.php:1248
213
+ #: index_orig.php:1238
214
+ #, fuzzy
215
+ #@ simple-history
216
+ msgid "Show 50 more"
217
+ msgstr "Visa 50 till"
218
+
219
+ #: index.php:1249
220
+ #: index_orig.php:1239
221
+ #, fuzzy
222
+ #@ simple-history
223
+ msgid "Show 100 more"
224
+ msgstr "Visa 100 till"
225
+
226
+ #: index.php:1252
227
+ #: index_orig.php:1242
228
+ #@ simple-history
229
+ msgid "Loading..."
230
+ msgstr "Laddar..."
231
+
232
+ #: index.php:1253
233
+ #: index_orig.php:1243
234
+ #@ simple-history
235
+ msgid "No more history items found."
236
+ msgstr "Ingen historik hittad."
237
+
238
+ #: index.php:1254
239
+ #: index_orig.php:1244
240
+ #@ simple-history
241
+ msgid "Simple History RSS feed"
242
+ msgstr "Webbplatshistorik RSS feed"
243
+
244
+ #: index.php:1256
245
+ #: index_orig.php:1246
246
+ #@ simple-history
247
+ msgid "Show"
248
+ msgstr "Visa"
249
+
250
+ #: index.php:1270
251
+ #: index_orig.php:1260
252
+ #@ simple-history
253
+ msgid "No history items found."
254
+ msgstr "Inga händelser hittade."
255
+
256
+ #: index.php:1271
257
+ #: index_orig.php:1261
258
+ #@ simple-history
259
+ msgid "Please note that Simple History only records things that happen after this plugin have been installed."
260
+ msgstr "Vänligen notera att \"Webbplatshistorik\" enbart visar händelser efter detta plugin aktiverats."
261
+
262
+ #: index.php:1095
263
+ #@ simple-history
264
+ msgid "attachment"
265
+ msgstr "bilaga"
266
+
267
+ #: index.php:1134
268
+ #@ simple-history
269
+ msgid "user"
270
+ msgstr "användare"
271
+
272
+ #: index.php:29
273
+ #@ simple-history
274
+ msgid "Simple History"
275
+ msgstr "Webbplatshistorik"
276
+
277
+ #: index.php:317
278
+ #: index.php:321
279
+ #: index.php:691
280
+ #@ default
281
+ msgid "Plugin"
282
+ msgstr ""
283
+
284
+ #: index.php:336
285
+ #: index.php:351
286
+ #: index.php:382
287
+ #@ default
288
+ msgid "Comment"
289
+ msgstr ""
290
+
291
+ #: index.php:451
292
+ #: index.php:457
293
+ #: index.php:462
294
+ #@ simple-history
295
+ msgid "Attachment"
296
+ msgstr "Filuppladdning"
297
+
298
+ #: index.php:469
299
+ #: index.php:476
300
+ #: index.php:483
301
+ #: index.php:497
302
+ #: index.php:504
303
+ #@ simple-history
304
+ msgid "User"
305
+ msgstr "Användare"
306
+
307
+ #: index.php:512
308
+ #@ default
309
+ msgid "Post"
310
+ msgstr ""
311
+
312
+ #: index.php:42
313
+ #: index.php:726
314
+ #@ simple-history
315
+ msgid "All types"
316
+ msgstr "All historik"
317
+
318
+ #: index.php:317
319
+ #: index.php:691
320
+ #@ simple-history
321
+ msgid "activated"
322
+ msgstr "aktiverades"
323
+
324
+ #: index.php:321
325
+ #@ simple-history
326
+ msgid "deactivated"
327
+ msgstr "inaktiverades"
328
+
329
+ #: index.php:336
330
+ #@ simple-history
331
+ msgid "edited"
332
+ msgstr "redigerade"
333
+
334
+ #: index.php:366
335
+ #@ simple-history
336
+ msgid "approved"
337
+ msgstr "godkände"
338
+
339
+ #: index.php:368
340
+ #@ simple-history
341
+ msgid "unapproved"
342
+ msgstr "nekade"
343
+
344
+ #: index.php:370
345
+ #@ simple-history
346
+ msgid "marked as spam"
347
+ msgstr "markerade som skräppost"
348
+
349
+ #: index.php:372
350
+ #@ simple-history
351
+ msgid "trashed"
352
+ msgstr "slängde"
353
+
354
+ #: index.php:374
355
+ #@ simple-history
356
+ msgid "untrashed"
357
+ msgstr "återställde"
358
+
359
+ #: index.php:497
360
+ #@ simple-history
361
+ msgid "logged_in"
362
+ msgstr "loggade in"
363
+
364
+ #: index.php:504
365
+ #@ simple-history
366
+ msgid "logged_out"
367
+ msgstr "loggade ut"
368
+
369
+ #: index.php:1205
370
+ #, php-format
371
+ #@ simple-history
372
+ msgid "%s at %s"
373
+ msgstr "%s klockan %s"
374
+
languages/simple-history-zh_CN.mo ADDED
Binary file
languages/simple-history-zh_CN.po ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: LERIO\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-12-07 14:45+0800\n"
6
+ "PO-Revision-Date: 2010-12-07 14:49+0800\n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: LERIO <LERIO@QQ.COM>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: ..\n"
14
+ "X-Poedit-Language: Chinese\n"
15
+ "X-Poedit-Country: CHINA\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+
19
+ #: index.php:126
20
+ #: index.php:168
21
+ #, php-format
22
+ msgid "Simple History for %s"
23
+ msgstr "简易历史 %s"
24
+
25
+ #: index.php:127
26
+ #: index.php:169
27
+ #, php-format
28
+ msgid "WordPress History for %s"
29
+ msgstr "WordPress 简易历史 %s"
30
+
31
+ #: index.php:139
32
+ #, php-format
33
+ msgid "By %s"
34
+ msgstr "由 %s"
35
+
36
+ #: index.php:143
37
+ #, php-format
38
+ msgid "%d occasions"
39
+ msgstr "%d 事件"
40
+
41
+ #: index.php:173
42
+ msgid "Wrong RSS secret"
43
+ msgstr "错误的私隐 RSS"
44
+
45
+ #: index.php:174
46
+ msgid "Your RSS secret for Simple History RSS feed is wrong. Please see WordPress settings for current link to the RSS feed."
47
+ msgstr "您的简易历史 RSS 私密订阅是错误的。请参阅 WordPress 中的 RSS 订阅链接设置。"
48
+
49
+ #: index.php:247
50
+ msgid "on the dashboard"
51
+ msgstr "显示在控制面版上"
52
+
53
+ #: index.php:252
54
+ msgid "as a page under the tools menu"
55
+ msgstr "显示在右侧功能栏上"
56
+
57
+ #: index.php:283
58
+ msgid "Created new secret RSS adress"
59
+ msgstr "建立新的 RSS 私密地址"
60
+
61
+ #: index.php:294
62
+ msgid "This is a secret RSS feed for Simple History. Only share the link with people you trust"
63
+ msgstr "这是简单历史的私密订阅。只能与你信任的人分享的链接"
64
+
65
+ #: index.php:297
66
+ #, php-format
67
+ msgid "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."
68
+ msgstr "你可以为 RSS 订阅 <a href='%s'>建立一个新的地址</a>。这是非常有用的,如果你认为地址已经泄漏。"
69
+
70
+ #: index.php:320
71
+ #: index.php:335
72
+ #: index.php:366
73
+ #, php-format
74
+ msgid "From %1$s on %2$s"
75
+ msgstr "从 %1$s 开始到 %2$s"
76
+
77
+ #: index.php:816
78
+ msgid "By all users"
79
+ msgstr "所有用户"
80
+
81
+ #: index.php:1036
82
+ msgid "Unknown or deleted user"
83
+ msgstr "未知或已删除用户"
84
+
85
+ #: index.php:1063
86
+ msgid "created"
87
+ msgstr "创建"
88
+
89
+ #: index.php:1065
90
+ #: index.php:1158
91
+ msgid "updated"
92
+ msgstr "更新"
93
+
94
+ #: index.php:1067
95
+ #: index.php:1160
96
+ msgid "deleted"
97
+ msgstr "删除"
98
+
99
+ #: index.php:1156
100
+ msgid "added"
101
+ msgstr "添加"
102
+
103
+ #: index.php:1162
104
+ msgid "logged in"
105
+ msgstr "登录"
106
+
107
+ #: index.php:1164
108
+ msgid "logged out"
109
+ msgstr "登出"
110
+
111
+ #: index.php:1198
112
+ msgid "+ 1 occasion"
113
+ msgstr "+ 1次"
114
+
115
+ #: index.php:1201
116
+ #, php-format
117
+ msgid "+ %d occasions"
118
+ msgstr "+ %d 次"
119
+
120
+ #: index.php:1230
121
+ #, php-format
122
+ msgid "Show %d more"
123
+ msgstr "显示 %d 个更多"
124
+
125
+ #: index.php:1231
126
+ msgid "Loading..."
127
+ msgstr "载入中..."
128
+
129
+ #: index.php:1232
130
+ msgid "No more history items found."
131
+ msgstr "没有找到更多的历史项目。"
132
+
133
+ #: index.php:1233
134
+ msgid "Simple History RSS feed"
135
+ msgstr "简易历史 RSS 订阅"
136
+
137
+ #: index.php:1249
138
+ msgid "No history items found."
139
+ msgstr "没有找到历史项目。"
140
+
141
+ #: index.php:1250
142
+ msgid "Please note that Simple History only records things that happen after this plugin have been installed."
143
+ msgstr "请注意,简单的历史只能记录插件安装后发生的事情。"
144
+
languages/simple-history.pot CHANGED
@@ -1,145 +1,338 @@
1
- # Translation of the WordPress plugin by .
2
- # Copyright (C) 2010
3
  # This file is distributed under the same license as the package.
4
- # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
5
- #
6
- #, fuzzy
7
  msgid ""
8
  msgstr ""
9
  "Project-Id-Version: \n"
10
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/simple-history\n"
11
- "POT-Creation-Date: 2010-09-19 18:24+0000\n"
12
- "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
13
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
- "Language-Team: LANGUAGE <LL@li.org>\n"
15
  "MIME-Version: 1.0\n"
16
- "Content-Type: text/plain; charset=utf-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
- #: index.php:126 index.php:168
20
- #, php-format
21
- msgid "Simple History for %s"
22
  msgstr ""
23
 
24
- #: index.php:127 index.php:169
25
- #, php-format
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  msgid "WordPress History for %s"
27
  msgstr ""
28
 
29
- #: index.php:139
30
- #, php-format
31
  msgid "By %s"
32
  msgstr ""
33
 
34
- #: index.php:143
35
- #, php-format
36
  msgid "%d occasions"
37
  msgstr ""
38
 
39
- #: index.php:173
40
  msgid "Wrong RSS secret"
41
  msgstr ""
42
 
43
- #: index.php:174
44
  msgid ""
45
  "Your RSS secret for Simple History RSS feed is wrong. Please see WordPress "
46
  "settings for current link to the RSS feed."
47
  msgstr ""
48
 
49
- #: index.php:247
 
 
 
 
 
 
 
 
50
  msgid "on the dashboard"
51
  msgstr ""
52
 
53
- #: index.php:252
54
- msgid "as a page under the tools menu"
 
 
 
 
 
 
 
 
 
 
 
 
55
  msgstr ""
56
 
57
- #: index.php:283
58
  msgid "Created new secret RSS adress"
59
  msgstr ""
60
 
61
- #: index.php:294
62
  msgid ""
63
  "This is a secret RSS feed for Simple History. Only share the link with "
64
  "people you trust"
65
  msgstr ""
66
 
67
- #: index.php:297
68
- #, php-format
69
  msgid ""
70
- "You can <a href='%s'>generate a new address</a> for the RSS feed. This is "
71
- "useful if you think that the address has fallen into the wrong hands."
 
72
  msgstr ""
73
 
74
- #: index.php:320 index.php:335 index.php:366
75
- #, php-format
76
- msgid "From %1$s on %2$s"
77
  msgstr ""
78
 
79
- #: index.php:811
80
- msgid "By all users"
81
  msgstr ""
82
 
83
- #: index.php:1031
84
- msgid "Unknown or deleted user"
85
  msgstr ""
86
 
87
- #: index.php:1058
88
- msgid "created"
89
  msgstr ""
90
 
91
- #: index.php:1060 index.php:1153
92
- msgid "updated"
93
  msgstr ""
94
 
95
- #: index.php:1062 index.php:1155
96
  msgid "deleted"
97
  msgstr ""
98
 
99
- #: index.php:1151
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  msgid "added"
101
  msgstr ""
102
 
103
- #: index.php:1157
 
 
 
 
 
 
 
 
104
  msgid "logged in"
105
  msgstr ""
106
 
107
- #: index.php:1159
108
  msgid "logged out"
109
  msgstr ""
110
 
111
- #: index.php:1193
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  msgid "+ 1 occasion"
113
  msgstr ""
114
 
115
- #: index.php:1196
116
- #, php-format
117
  msgid "+ %d occasions"
118
  msgstr ""
119
 
120
- #: index.php:1225
121
- #, php-format
122
- msgid "Show %d more"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  msgstr ""
124
 
125
- #: index.php:1226
126
  msgid "Loading..."
127
  msgstr ""
128
 
129
- #: index.php:1227
130
- msgid "No more history items found."
131
  msgstr ""
132
 
133
- #: index.php:1228
134
- msgid "Simple History RSS feed"
135
  msgstr ""
136
 
137
- #: index.php:1244
138
  msgid "No history items found."
139
  msgstr ""
140
 
141
- #: index.php:1245
142
  msgid ""
143
  "Please note that Simple History only records things that happen after this "
144
  "plugin have been installed."
145
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2012
 
2
  # This file is distributed under the same license as the package.
 
 
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: \n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/simple-history\n"
7
+ "POT-Creation-Date: 2012-09-23 11:21:09+00:00\n"
 
 
 
8
  "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2012-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: index.php:67 index.php:208 index.php:827
16
+ msgid "History"
17
+ msgstr ""
18
+
19
+ #: index.php:120 index.php:630 index.php:642 index.php:730
20
+ msgid "updated"
21
+ msgstr ""
22
+
23
+ #: index.php:120
24
+ msgid "WordPress Core"
25
+ msgstr ""
26
+
27
+ #: index.php:120
28
+ msgid "WordPress %1$s"
29
+ msgstr ""
30
+
31
+ #: index.php:133 index.php:222
32
+ msgid "Donate"
33
+ msgstr ""
34
 
35
+ #: index.php:178
36
+ msgid "upgraded it's database"
 
37
  msgstr ""
38
 
39
+ #: index.php:178 index.php:494 index.php:498 index.php:887
40
+ msgid "Plugin"
41
+ msgstr ""
42
+
43
+ #: index.php:194 index.php:215
44
+ msgid "Simple History Settings"
45
+ msgstr ""
46
+
47
+ #: index.php:220
48
+ msgid "Show Simple History"
49
+ msgstr ""
50
+
51
+ #: index.php:221 index.php:1512
52
+ msgid "RSS feed"
53
+ msgstr ""
54
+
55
+ #: index.php:262 index.php:305
56
+ msgid "History for %s"
57
+ msgstr ""
58
+
59
+ #: index.php:263 index.php:306
60
  msgid "WordPress History for %s"
61
  msgstr ""
62
 
63
+ #: index.php:275
 
64
  msgid "By %s"
65
  msgstr ""
66
 
67
+ #: index.php:279
 
68
  msgid "%d occasions"
69
  msgstr ""
70
 
71
+ #: index.php:310
72
  msgid "Wrong RSS secret"
73
  msgstr ""
74
 
75
+ #: index.php:311
76
  msgid ""
77
  "Your RSS secret for Simple History RSS feed is wrong. Please see WordPress "
78
  "settings for current link to the RSS feed."
79
  msgstr ""
80
 
81
+ #: index.php:328 index.php:921
82
+ msgid "All types"
83
+ msgstr ""
84
+
85
+ #: index.php:331 index.php:987
86
+ msgid "By all users"
87
+ msgstr ""
88
+
89
+ #: index.php:417
90
  msgid "on the dashboard"
91
  msgstr ""
92
 
93
+ #: index.php:422
94
+ msgid "as a page under the dashboard menu"
95
+ msgstr ""
96
+
97
+ #: index.php:431
98
+ msgid ""
99
+ "\n"
100
+ "\t\t\tPlease\n"
101
+ "\t\t\t<a href=\"http://eskapism.se/sida/donate/?"
102
+ "utm_source=wordpress&utm_medium=settingpage&utm_campaign=simplehistory\">\n"
103
+ "\t\t\tdonate\n"
104
+ "\t\t\t</a> to support the development of this plugin and to keep it free.\n"
105
+ "\t\t\tThanks!\n"
106
+ "\t\t\t"
107
  msgstr ""
108
 
109
+ #: index.php:473
110
  msgid "Created new secret RSS adress"
111
  msgstr ""
112
 
113
+ #: index.php:484
114
  msgid ""
115
  "This is a secret RSS feed for Simple History. Only share the link with "
116
  "people you trust"
117
  msgstr ""
118
 
119
+ #: index.php:487
 
120
  msgid ""
121
+ "You can <a href='%s#simple-history-settings-page'>generate a new address</a> "
122
+ "for the RSS feed. This is useful if you think that the address has fallen "
123
+ "into the wrong hands."
124
  msgstr ""
125
 
126
+ #: index.php:494 index.php:887 index.php:1434
127
+ msgid "activated"
 
128
  msgstr ""
129
 
130
+ #: index.php:498 index.php:1437
131
+ msgid "deactivated"
132
  msgstr ""
133
 
134
+ #: index.php:510 index.php:526 index.php:558
135
+ msgid "From %1$s on %2$s"
136
  msgstr ""
137
 
138
+ #: index.php:513
139
+ msgid "edited"
140
  msgstr ""
141
 
142
+ #: index.php:513 index.php:529 index.php:561
143
+ msgid "Comment"
144
  msgstr ""
145
 
146
+ #: index.php:529 index.php:635 index.php:656 index.php:685 index.php:727
147
  msgid "deleted"
148
  msgstr ""
149
 
150
+ #: index.php:545
151
+ msgid "approved"
152
+ msgstr ""
153
+
154
+ #: index.php:547
155
+ msgid "unapproved"
156
+ msgstr ""
157
+
158
+ #: index.php:549
159
+ msgid "marked as spam"
160
+ msgstr ""
161
+
162
+ #: index.php:551
163
+ msgid "trashed"
164
+ msgstr ""
165
+
166
+ #: index.php:553
167
+ msgid "untrashed"
168
+ msgstr ""
169
+
170
+ #: index.php:623
171
  msgid "added"
172
  msgstr ""
173
 
174
+ #: index.php:623 index.php:630 index.php:635
175
+ msgid "Attachment"
176
+ msgstr ""
177
+
178
+ #: index.php:642 index.php:656 index.php:670 index.php:677
179
+ msgid "User"
180
+ msgstr ""
181
+
182
+ #: index.php:670
183
  msgid "logged in"
184
  msgstr ""
185
 
186
+ #: index.php:677
187
  msgid "logged out"
188
  msgstr ""
189
 
190
+ #: index.php:685
191
+ msgid "Post"
192
+ msgstr ""
193
+
194
+ #: index.php:722
195
+ msgid "created"
196
+ msgstr ""
197
+
198
+ #: index.php:1006
199
+ msgid "Search"
200
+ msgstr ""
201
+
202
+ #: index.php:1043
203
+ msgid "Go to the first page"
204
+ msgstr ""
205
+
206
+ #: index.php:1044
207
+ msgid "Go to the previous page"
208
+ msgstr ""
209
+
210
+ #: index.php:1045
211
+ msgid "Current page"
212
+ msgstr ""
213
+
214
+ #: index.php:1046
215
+ msgid "of"
216
+ msgstr ""
217
+
218
+ #: index.php:1047
219
+ msgid "Go to the next page"
220
+ msgstr ""
221
+
222
+ #: index.php:1048
223
+ msgid "Go to the last page"
224
+ msgstr ""
225
+
226
+ #: index.php:1280
227
+ msgid "Unknown or deleted user"
228
+ msgstr ""
229
+
230
+ #: index.php:1338
231
+ msgid "attachment"
232
+ msgstr ""
233
+
234
+ #: index.php:1370
235
+ msgid "user"
236
+ msgstr ""
237
+
238
+ #: index.php:1440
239
+ msgid "enabled"
240
+ msgstr ""
241
+
242
+ #: index.php:1443
243
+ msgid "disabled"
244
+ msgstr ""
245
+
246
+ #: index.php:1458
247
+ msgid "<span class=\"when\">%1$s ago</span> by %2$s"
248
+ msgstr ""
249
+
250
+ #: index.php:1460
251
+ msgid "%s at %s"
252
+ msgstr ""
253
+
254
+ #: index.php:1467
255
  msgid "+ 1 occasion"
256
  msgstr ""
257
 
258
+ #: index.php:1470
 
259
  msgid "+ %d occasions"
260
  msgstr ""
261
 
262
+ #: index.php:1478
263
+ msgid "%s ago (%s at %s)"
264
+ msgstr ""
265
+
266
+ #: index.php:1503
267
+ msgid "Show 5 more"
268
+ msgstr ""
269
+
270
+ #: index.php:1504
271
+ msgid "Show 15 more"
272
+ msgstr ""
273
+
274
+ #: index.php:1505
275
+ msgid "Show 50 more"
276
+ msgstr ""
277
+
278
+ #: index.php:1506
279
+ msgid "Show 100 more"
280
  msgstr ""
281
 
282
+ #: index.php:1509
283
  msgid "Loading..."
284
  msgstr ""
285
 
286
+ #: index.php:1511
287
+ msgid "No matchin items found."
288
  msgstr ""
289
 
290
+ #: index.php:1514
291
+ msgid "Show"
292
  msgstr ""
293
 
294
+ #: index.php:1533
295
  msgid "No history items found."
296
  msgstr ""
297
 
298
+ #: index.php:1534
299
  msgid ""
300
  "Please note that Simple History only records things that happen after this "
301
  "plugin have been installed."
302
  msgstr ""
303
+
304
+ #: index.php:1546
305
+ msgid "General Settings"
306
+ msgstr ""
307
+
308
+ #: index.php:1547
309
+ msgid "Writing Settings"
310
+ msgstr ""
311
+
312
+ #: index.php:1548
313
+ msgid "Reading Settings"
314
+ msgstr ""
315
+
316
+ #: index.php:1549
317
+ msgid "Discussion Settings"
318
+ msgstr ""
319
+
320
+ #: index.php:1550
321
+ msgid "Media Settings"
322
+ msgstr ""
323
+
324
+ #: index.php:1551
325
+ msgid "Privacy Settings"
326
+ msgstr ""
327
+
328
+ #: index.php:1557 index.php:1569
329
+ msgid "modified"
330
+ msgstr ""
331
+
332
+ #: index.php:1557 index.php:1569
333
+ msgid "Settings page"
334
+ msgstr ""
335
+
336
+ #: index.php:1567
337
+ msgid "Permalink Settings"
338
+ msgstr ""
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: 3.0
6
  Tested up to: 3.4.2
7
- Stable tag: 1.0
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,9 +12,11 @@ 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
- The plugin works as a log/history/audit log/version history of all (most, anyway) events that occur in WordPress. For example:
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
  * search through the history/log to find the change/post/article you are looking for
@@ -43,11 +45,15 @@ See the plugin in action with this short screencast:
43
  If you are a plugin developer and would like to add your own things/events to Simple History
44
  you can do that by calling the function simple_history_add like this:
45
  `<?php
46
- # will return “Plugin your_plugin_name Edited”
 
47
  simple_history_add("action=edited&object_type=plugin&object_name=your_plugin_name");
48
- ?>`
49
 
50
- `<?php simple_history_add("action=repaired&object_type=starship&object_name=USS Enterprise"); ?>`
 
 
 
 
51
 
52
  #### Translations/Languages
53
 
@@ -68,7 +74,7 @@ This plugin is available in the following languages:
68
  1. Activate the plugin through the "Plugins" menu in WordPress
69
  1. Done!
70
 
71
- Now Simple History will be visible both on the dashboard and in the menu under pages.
72
 
73
  == Feedback ==
74
  Like the plugin? Dislike it? Got bugs or feature request?
@@ -77,7 +83,7 @@ I can do something about it.
77
 
78
  == Screenshots ==
79
 
80
- 1. Simple History as it looks on your (well, mine anyway..) dashboard.
81
 
82
  2. Simple History settings. Choose to show the plugin on your dashboard, or as a separately page. Or both. Or none, since you can choose
83
  to only use the secret RSS feed to keep track of the changes on you web site/WordPress installation.
@@ -86,6 +92,13 @@ to only use the secret RSS feed to keep track of the changes on you web site/Wor
86
 
87
  == Changelog ==
88
 
 
 
 
 
 
 
 
89
  = 1.0 =
90
  - Added: pagination. Gives you more information, for example the number of items, and quicker access to older history items. Also looks more like the rest of the WordPress GUI.
91
  - Modified: search now searches type of action (added, modified, deleted, etc.).
4
  Tags: history, log, changes, changelog, audit, trail, pages, attachments, users, cms, dashboard, admin
5
  Requires at least: 3.0
6
  Tested up to: 3.4.2
7
+ Stable tag: 1.0.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
 
12
 
13
  Simple History shows recent changes made within WordPress, directly on your dashboard or on a separate page.
14
 
15
+ The plugin works as a log/history/audit log/version history of the most important events that occur in WordPress.
16
 
17
+ For example:
18
+
19
+ * see what posts and pages that have been created, modified or deleted
20
  * see what attachments have been uploaded, modified or deleted
21
  * see what plugins that have been activated or deactivated
22
  * search through the history/log to find the change/post/article you are looking for
45
  If you are a plugin developer and would like to add your own things/events to Simple History
46
  you can do that by calling the function simple_history_add like this:
47
  `<?php
48
+
49
+ # Will show “Plugin your_plugin_name Edited” in the history log
50
  simple_history_add("action=edited&object_type=plugin&object_name=your_plugin_name");
 
51
 
52
+ # Will show the history item "Starship USS Enterprise repaired"
53
+ simple_history_add("action=repaired&object_type=Starship&object_name=USS Enterprise");
54
+
55
+ ?>
56
+ `
57
 
58
  #### Translations/Languages
59
 
74
  1. Activate the plugin through the "Plugins" menu in WordPress
75
  1. Done!
76
 
77
+ Now Simple History will be visible in a submenu under the dashboard main menu. You can also show it directly on the dashboard by modified Simple History's settings page.
78
 
79
  == Feedback ==
80
  Like the plugin? Dislike it? Got bugs or feature request?
83
 
84
  == Screenshots ==
85
 
86
+ 1. Simple History showing som recent changes to my posts, users and attachments.
87
 
88
  2. Simple History settings. Choose to show the plugin on your dashboard, or as a separately page. Or both. Or none, since you can choose
89
  to only use the secret RSS feed to keep track of the changes on you web site/WordPress installation.
92
 
93
  == Changelog ==
94
 
95
+ = 1.0.1 =
96
+ - The pagination no longer disappear after clickin "occasions"
97
+ - Fixed: AJAX loading of new history items didn't work.
98
+ - New filter: simple_history_view_history_capability. Default is "edit_pages". Modify this to change what cabability is required to view the history.
99
+ - Modified: styles and scripts are only added on pages that use/show Simple History
100
+ - Updated: new POT file. So translators my want to update their translations...
101
+
102
  = 1.0 =
103
  - Added: pagination. Gives you more information, for example the number of items, and quicker access to older history items. Also looks more like the rest of the WordPress GUI.
104
  - Modified: search now searches type of action (added, modified, deleted, etc.).
scripts.js CHANGED
@@ -24,8 +24,7 @@ jQuery(document).on("keyup", ".simple-history-filter-search input[type='text'],
24
  // begin at position 0 unless click on pagination then check pagination page
25
  jQuery(".simple-history-filter a, .simple-history-filter input[type='button'], .simple-history-tablenav a").live("click", function(e, extraParams) {
26
 
27
- var
28
- $t = jQuery(this),
29
  $ol = jQuery("ol.simple-history"),
30
  $wrapper = jQuery(".simple-history-ol-wrapper"),
31
  num_added = $ol.find("> li").length,
@@ -96,8 +95,7 @@ jQuery(".simple-history-filter a, .simple-history-filter input[type='button'], .
96
  "page": simple_history_current_page
97
  };
98
  jQuery.post(ajaxurl, data, function(data, textStatus, XMLHttpRequest){
99
- data = jQuery.parseJSON(data);
100
-
101
  if (data.error == "noMoreItems") {
102
  // jQuery(".simple-history-load-more,.simple-history-load-more-loading").hide();
103
  jQuery(".simple-history-no-more-items").show();
@@ -121,6 +119,7 @@ jQuery(".simple-history-filter a, .simple-history-filter input[type='button'], .
121
  height: $ol.height()
122
  }, "fast", "swing", function() {
123
  $ol.fadeIn("fast");
 
124
  });
125
 
126
  }
24
  // begin at position 0 unless click on pagination then check pagination page
25
  jQuery(".simple-history-filter a, .simple-history-filter input[type='button'], .simple-history-tablenav a").live("click", function(e, extraParams) {
26
 
27
+ var $t = jQuery(this),
 
28
  $ol = jQuery("ol.simple-history"),
29
  $wrapper = jQuery(".simple-history-ol-wrapper"),
30
  num_added = $ol.find("> li").length,
95
  "page": simple_history_current_page
96
  };
97
  jQuery.post(ajaxurl, data, function(data, textStatus, XMLHttpRequest){
98
+
 
99
  if (data.error == "noMoreItems") {
100
  // jQuery(".simple-history-load-more,.simple-history-load-more-loading").hide();
101
  jQuery(".simple-history-no-more-items").show();
119
  height: $ol.height()
120
  }, "fast", "swing", function() {
121
  $ol.fadeIn("fast");
122
+ jQuery(".simple-history-ol-wrapper").height("auto");
123
  });
124
 
125
  }