Version Description
Download this release
Release Info
Developer | mitchoyoshitaka |
Plugin | Yet Another Related Posts Plugin (YARPP) |
Version | 3.4.3b3 |
Comparing to | |
See all releases |
Code changes from version 3.4.3b2 to 3.4.3b3
- class-cache.php +2 -2
- yarpp.php +2 -2
class-cache.php
CHANGED
@@ -225,10 +225,10 @@ abstract class YARPP_Cache {
|
|
225 |
if ( isset($args['post_type']) && is_array($args['post_type']) )
|
226 |
$post_types = $args['post_type'];
|
227 |
else
|
228 |
-
$post_types = $this->core->get_post_types();
|
229 |
|
230 |
$queries = array();
|
231 |
-
foreach ( $
|
232 |
$queries[] = '(' . str_replace("post_type = 'post'", "post_type = '{$post_type}'", $newsql) . ')';
|
233 |
}
|
234 |
$sql = implode( ' union ', $queries );
|
225 |
if ( isset($args['post_type']) && is_array($args['post_type']) )
|
226 |
$post_types = $args['post_type'];
|
227 |
else
|
228 |
+
$post_types = $this->core->get_post_types( 'name' );
|
229 |
|
230 |
$queries = array();
|
231 |
+
foreach ( $post_types as $post_type ) {
|
232 |
$queries[] = '(' . str_replace("post_type = 'post'", "post_type = '{$post_type}'", $newsql) . ')';
|
233 |
}
|
234 |
$sql = implode( ' union ', $queries );
|
yarpp.php
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
Plugin Name: Yet Another Related Posts Plugin
|
4 |
Plugin URI: http://yarpp.org/
|
5 |
Description: Returns a list of related entries based on a unique algorithm for display on your blog and RSS feeds. A templating feature allows customization of the display.
|
6 |
-
Version: 3.4.
|
7 |
Author: mitcho (Michael Yoshitaka Erlewine)
|
8 |
Author URI: http://mitcho.com/
|
9 |
Donate link: http://tinyurl.com/donatetomitcho
|
10 |
*/
|
11 |
|
12 |
-
define('YARPP_VERSION', '3.4.
|
13 |
define('YARPP_DIR', dirname(__FILE__));
|
14 |
define('YARPP_NO_RELATED', ':(');
|
15 |
define('YARPP_RELATED', ':)');
|
3 |
Plugin Name: Yet Another Related Posts Plugin
|
4 |
Plugin URI: http://yarpp.org/
|
5 |
Description: Returns a list of related entries based on a unique algorithm for display on your blog and RSS feeds. A templating feature allows customization of the display.
|
6 |
+
Version: 3.4.3b3
|
7 |
Author: mitcho (Michael Yoshitaka Erlewine)
|
8 |
Author URI: http://mitcho.com/
|
9 |
Donate link: http://tinyurl.com/donatetomitcho
|
10 |
*/
|
11 |
|
12 |
+
define('YARPP_VERSION', '3.4.3b3');
|
13 |
define('YARPP_DIR', dirname(__FILE__));
|
14 |
define('YARPP_NO_RELATED', ':(');
|
15 |
define('YARPP_RELATED', ':)');
|