Skip to content

Commit

Permalink
Merge branch 'hotfix/0.4.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
garex committed Nov 10, 2014
2 parents 7741d11 + 4b9d30e commit f727512
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@

## Changelog ##


### 0.4.1 ###
Fix tests preview mode

* Not changing main WP query when in preview


### 0.4 ###
Display tests in blog everywhere same as posts

Expand Down Expand Up @@ -111,6 +118,9 @@ Initial release

== Upgrade Notice ==

### 0.4.1 ###
Fix tests preview mode

### 0.3 ###
Plugin now more stable under WP 3.2 to latest and PHP from 5.2 to 5.5

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
**Tags:** psychological, testing, test, quiz
**Requires at least:** 3.2
**Tested up to:** 3.9
**Stable tag:** 0.4
**Stable tag:** 0.4.1
**License:** GPLv3
**License URI:** http://www.gnu.org/licenses/gpl-3.0.html

Expand Down
2 changes: 1 addition & 1 deletion src/Doer/PostBrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class WpTesting_Doer_PostBrowser extends WpTesting_Doer_AbstractDoer
*/
public function addTestsToQuery($query)
{
if (!$this->wp->isQueryMain($query)) {
if (!$this->wp->isQueryMain($query) || $query->is_preview()) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion wp-testing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Wp-testing
* Plugin URI: http://wordpress.org/extend/plugins/wp-testing/
* Description: Helps to create psychological tests.
* Version: 0.4
* Version: 0.4.1
* Author: Alexander Ustimenko
* Author URI: http://ustimen.co
* License: GPL3
Expand Down

0 comments on commit f727512

Please sign in to comment.