Related Posts for WordPress - Version 2.0.2

Version Description

Download this release

Release Info

Developer barrykooij
Plugin Icon 128x128 Related Posts for WordPress
Version 2.0.2
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.2

classes/class-post-link-manager.php CHANGED
@@ -211,12 +211,11 @@ class RP4WP_Post_Link_Manager {
211
 
212
  //Child WP_Query arguments
213
  if ( count( $child_ids ) > 0 ) {
214
- $child_id_values = array_values( $child_ids );
215
- $child_post_type = get_post_type( array_shift( $child_id_values ) );
216
  $child_args = array(
217
- 'post_type' => $child_post_type,
218
- 'posts_per_page' => - 1,
219
- 'post__in' => $child_ids,
 
220
  );
221
 
222
  // Extra arguments
211
 
212
  //Child WP_Query arguments
213
  if ( count( $child_ids ) > 0 ) {
 
 
214
  $child_args = array(
215
+ 'post_type' => 'post',
216
+ 'posts_per_page' => -1,
217
+ 'ignore_sticky_posts' => 1,
218
+ 'post__in' => $child_ids,
219
  );
220
 
221
  // Extra arguments
classes/class-rp4wp.php CHANGED
@@ -8,7 +8,7 @@ class RP4WP {
8
 
9
  private static $instance = null;
10
 
11
- const VERSION = '2.0.1';
12
 
13
  /**
14
  * @var RP4WP_Settings
8
 
9
  private static $instance = null;
10
 
11
+ const VERSION = '2.0.2';
12
 
13
  /**
14
  * @var RP4WP_Settings
composer.lock ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_readme": [
3
+ "This file locks the dependencies of your project to a known state",
4
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
5
+ "This file is @generated automatically"
6
+ ],
7
+ "content-hash": "df49fc6a62cf1658476ec876ed16f6af",
8
+ "packages": [
9
+ {
10
+ "name": "xrstf/composer-php52",
11
+ "version": "v1.0.20",
12
+ "source": {
13
+ "type": "git",
14
+ "url": "https://github.com/composer-php52/composer-php52.git",
15
+ "reference": "bd41459d5e27df8d33057842b32377c39e97a5a8"
16
+ },
17
+ "dist": {
18
+ "type": "zip",
19
+ "url": "https://api.github.com/repos/composer-php52/composer-php52/zipball/bd41459d5e27df8d33057842b32377c39e97a5a8",
20
+ "reference": "bd41459d5e27df8d33057842b32377c39e97a5a8",
21
+ "shasum": ""
22
+ },
23
+ "type": "library",
24
+ "extra": {
25
+ "branch-alias": {
26
+ "dev-default": "1.x-dev"
27
+ }
28
+ },
29
+ "autoload": {
30
+ "psr-0": {
31
+ "xrstf\\Composer52": "lib/"
32
+ }
33
+ },
34
+ "notification-url": "https://packagist.org/downloads/",
35
+ "license": [
36
+ "MIT"
37
+ ],
38
+ "time": "2016-04-16T21:52:24+00:00"
39
+ }
40
+ ],
41
+ "packages-dev": [],
42
+ "aliases": [],
43
+ "minimum-stability": "stable",
44
+ "stability-flags": [],
45
+ "prefer-stable": false,
46
+ "prefer-lowest": false,
47
+ "platform": [],
48
+ "platform-dev": []
49
+ }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: never5, barrykooij, hchouhan
3
  Donate link: http://www.barrykooij.com/donate/
4
  Tags: related posts for wordpress, related posts for wp, simple related posts, easy related posts, related posts, related post, related, relations, internal links, seo, bounce rate
5
  Requires at least: 3.6
6
- Tested up to: 4.8.1
7
- Stable tag: 2.0.1
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -118,6 +118,10 @@ There is one custom table created for the post cache, this table will however no
118
 
119
  == Changelog ==
120
 
 
 
 
 
121
  = 2.0.1: September 7, 2017 =
122
  * Tweak: Plugin is now checking if required mbstring PHP extension is installed.
123
  * Tweak: Improved handling of plugin when premium version is also activated.
3
  Donate link: http://www.barrykooij.com/donate/
4
  Tags: related posts for wordpress, related posts for wp, simple related posts, easy related posts, related posts, related post, related, relations, internal links, seo, bounce rate
5
  Requires at least: 3.6
6
+ Tested up to: 4.9
7
+ Stable tag: 2.0.2
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
118
 
119
  == Changelog ==
120
 
121
+ = 2.0.2: October 10, 2017 =
122
+ * Tweak: Fixed an issue where sticky posts were always included in related posts.
123
+ * Tweak: Removed a post type check since post type is always post.
124
+
125
  = 2.0.1: September 7, 2017 =
126
  * Tweak: Plugin is now checking if required mbstring PHP extension is installed.
127
  * Tweak: Improved handling of plugin when premium version is also activated.
related-posts-for-wp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Related Posts for WordPress
4
  Plugin URI: http://www.relatedpostsforwp.com/
5
  Description: Related Posts for WordPress, the best way to display related posts in WordPress.
6
- Version: 2.0.1
7
  Author: Never5
8
  Author URI: http://www.never5.com/
9
  License: GPL v3
3
  Plugin Name: Related Posts for WordPress
4
  Plugin URI: http://www.relatedpostsforwp.com/
5
  Description: Related Posts for WordPress, the best way to display related posts in WordPress.
6
+ Version: 2.0.2
7
  Author: Never5
8
  Author URI: http://www.never5.com/
9
  License: GPL v3