Skip to content

Commit

Permalink
Fix tests preview mode
Browse files Browse the repository at this point in the history
  • Loading branch information
garex committed Nov 10, 2014
1 parent 7741d11 commit ea175a0
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit ea175a0

Please sign in to comment.