Skip to content

Commit

Permalink
Version 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Jun 5, 2016
1 parent ccda590 commit 7543aa2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ This function takes an array of options similar to the shortcode above.

== Changelog ==

= 2.0.1 =
* Fixed:
* Limit for number of posts broke in v2.0.0

= 2.0.0 =
* Features:
* Multisite activation and uninstall
Expand Down
6 changes: 3 additions & 3 deletions where-did-they-go-from-here.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Plugin Name: Where did they go from here
* Plugin URI: http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/
* Description: The best way to display posts followed by users a.k.a. "Readers who viewed this page, also viewed" links
* Version: 2.0.0
* Version: 2.0.1
* Author: Ajay D'Souza
* Author URI: https://ajaydsouza.com
* License: GPL-2.0+
Expand Down Expand Up @@ -186,7 +186,7 @@ function get_wherego( $args = array() ) {

foreach ( $results as $result ) {

if ( 0 === $result ) {
if ( 0 === (int) $result ) {
break;
}

Expand Down Expand Up @@ -220,7 +220,7 @@ function get_wherego( $args = array() ) {

$loop_counter++;
}
if ( $loop_counter === $args['limit'] ) {
if ( $loop_counter === (int) $args['limit'] ) {
break; // End loop when related posts limit is reached.
}
} // End of foreach loop.
Expand Down

0 comments on commit 7543aa2

Please sign in to comment.