Simple History - Version 1.3.7

Version Description

  • Added filter for rss feed: simple_history/rss_feed_args. Fixes http://wordpress.org/support/topic/more-rss-feed-items.
Download this release

Release Info

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

Code changes from version 1.3.6 to 1.3.7

Files changed (6) hide show
  1. bin/install-wp-tests.sh +0 -32
  2. index.php +11 -3
  3. phpunit.xml +0 -14
  4. readme.txt +4 -1
  5. tests/bootstrap.php +0 -14
  6. tests/test-sample.php +0 -10
bin/install-wp-tests.sh DELETED
@@ -1,32 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- if [ $# -lt 3 ]; then
4
- echo "usage: $0 <db-name> <db-user> <db-pass> [wp-version]"
5
- exit 1
6
- fi
7
-
8
- DB_NAME=$1
9
- DB_USER=$2
10
- DB_PASS=$3
11
- WP_VERSION=${4-master}
12
-
13
- set -ex
14
-
15
- # set up a WP install
16
- WP_CORE_DIR=/tmp/wordpress/
17
- mkdir -p $WP_CORE_DIR
18
- wget -nv -O /tmp/wordpress.tar.gz https://github.com/WordPress/WordPress/tarball/$WP_VERSION
19
- tar --strip-components=1 -zxmf /tmp/wordpress.tar.gz -C $WP_CORE_DIR
20
-
21
- # set up testing suite
22
- svn co --ignore-externals --quiet http://unit-tests.svn.wordpress.org/trunk/ $WP_TESTS_DIR
23
-
24
- cd $WP_TESTS_DIR
25
- cp wp-tests-config-sample.php wp-tests-config.php
26
- sed -i "s:dirname( __FILE__ ) . '/wordpress/':'$WP_CORE_DIR':" wp-tests-config.php
27
- sed -i "s/yourdbnamehere/$DB_NAME/" wp-tests-config.php
28
- sed -i "s/yourusernamehere/$DB_USER/" wp-tests-config.php
29
- sed -i "s/yourpasswordhere/$DB_PASS/" wp-tests-config.php
30
-
31
- # create database
32
- mysqladmin create $DB_NAME --user="$DB_USER" --password="$DB_PASS"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Simple History
4
  Plugin URI: http://eskapism.se/code-playground/simple-history/
5
  Description: Get a log/history/audit log/version history of the changes made by users in WordPress.
6
- Version: 1.3.6
7
  Author: Pär Thernström
8
  Author URI: http://eskapism.se/
9
  License: GPL2
@@ -27,7 +27,7 @@ License: GPL2
27
 
28
  load_plugin_textdomain('simple-history', false, "/simple-history/languages");
29
 
30
- define( "SIMPLE_HISTORY_VERSION", "1.3.6");
31
  define( "SIMPLE_HISTORY_NAME", "Simple History");
32
 
33
  // Find the plugin directory URL
@@ -441,7 +441,15 @@ define("SIMPLE_HISTORY_URL", $plugin_dir_url);
441
  "search" => "",
442
  "num_added" => 0
443
  */
444
- $arr_items = simple_history_get_items_array("items=10");
 
 
 
 
 
 
 
 
445
  foreach ($arr_items as $one_item) {
446
  $object_type = ucwords($one_item->object_type);
447
  $object_name = esc_html($one_item->object_name);
3
  Plugin Name: Simple History
4
  Plugin URI: http://eskapism.se/code-playground/simple-history/
5
  Description: Get a log/history/audit log/version history of the changes made by users in WordPress.
6
+ Version: 1.3.7
7
  Author: Pär Thernström
8
  Author URI: http://eskapism.se/
9
  License: GPL2
27
 
28
  load_plugin_textdomain('simple-history', false, "/simple-history/languages");
29
 
30
+ define( "SIMPLE_HISTORY_VERSION", "1.3.7");
31
  define( "SIMPLE_HISTORY_NAME", "Simple History");
32
 
33
  // Find the plugin directory URL
441
  "search" => "",
442
  "num_added" => 0
443
  */
444
+
445
+
446
+ $args = array(
447
+ "items" => "10"
448
+ );
449
+
450
+ $args = apply_filters("simple_history/rss_feed_args", $args);
451
+
452
+ $arr_items = simple_history_get_items_array($args);
453
  foreach ($arr_items as $one_item) {
454
  $object_type = ucwords($one_item->object_type);
455
  $object_name = esc_html($one_item->object_name);
phpunit.xml DELETED
@@ -1,14 +0,0 @@
1
- <phpunit
2
- bootstrap="tests/bootstrap.php"
3
- backupGlobals="false"
4
- colors="true"
5
- convertErrorsToExceptions="true"
6
- convertNoticesToExceptions="true"
7
- convertWarningsToExceptions="true"
8
- >
9
- <testsuites>
10
- <testsuite>
11
- <directory prefix="test-" suffix=".php">./tests/</directory>
12
- </testsuite>
13
- </testsuites>
14
- </phpunit>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://eskapism.se/sida/donate/
4
  Tags: history, log, changes, changelog, audit, trail, pages, attachments, users, cms, dashboard, admin, syslog
5
  Requires at least: 3.8.0
6
  Tested up to: 3.8.1
7
- Stable tag: 1.3.6
8
 
9
  View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
10
 
@@ -175,6 +175,9 @@ to only use the secret RSS feed to keep track of the changes on you web site/Wor
175
 
176
  == Changelog ==
177
 
 
 
 
178
  = 1.3.6 =
179
  - Added Polish translation
180
  - Added correct XML encoding and header
4
  Tags: history, log, changes, changelog, audit, trail, pages, attachments, users, cms, dashboard, admin, syslog
5
  Requires at least: 3.8.0
6
  Tested up to: 3.8.1
7
+ Stable tag: 1.3.7
8
 
9
  View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
10
 
175
 
176
  == Changelog ==
177
 
178
+ = 1.3.7 =
179
+ - Added filter for rss feed: `simple_history/rss_feed_args`. Fixes http://wordpress.org/support/topic/more-rss-feed-items.
180
+
181
  = 1.3.6 =
182
  - Added Polish translation
183
  - Added correct XML encoding and header
tests/bootstrap.php DELETED
@@ -1,14 +0,0 @@
1
- <?php
2
-
3
- #echo "WP_TESTS_DIR is: " . getenv( 'WP_TESTS_DIR' );
4
- #phpinfo();exit;
5
-
6
- require_once getenv( 'WP_TESTS_DIR' ) . '/includes/functions.php';
7
-
8
- function _manually_load_plugin() {
9
- require dirname( __FILE__ ) . '/../index.php';
10
- }
11
- tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
12
-
13
- require getenv( 'WP_TESTS_DIR' ) . '/includes/bootstrap.php';
14
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/test-sample.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
-
3
- class SampleTest extends WP_UnitTestCase {
4
-
5
- function testSample() {
6
- // replace this with some actual testing code
7
- $this->assertTrue( true );
8
- }
9
- }
10
-