Version Description
Download this release
Release Info
Developer | mitchoyoshitaka |
Plugin | Yet Another Related Posts Plugin (YARPP) |
Version | 3.4.2b1 |
Comparing to | |
See all releases |
Code changes from version 3.4.1 to 3.4.2b1
- class-cache.php +1 -1
- readme.txt +3 -0
- yarpp-templates/yarpp-template-random.php +1 -1
- yarpp.php +2 -2
class-cache.php
CHANGED
@@ -183,7 +183,7 @@ abstract class YARPP_Cache {
|
|
183 |
$disterms = wp_parse_id_list(join(',',$exclude));
|
184 |
$usedisterms = count($disterms);
|
185 |
if ( $usedisterms || count($tax_criteria) ) {
|
186 |
-
$newsql .= "left join $wpdb->term_relationships as terms on ( terms.object_id =
|
187 |
. "left join $wpdb->term_taxonomy as termtax on ( terms.term_taxonomy_id = termtax.term_taxonomy_id ) \n"
|
188 |
. "left join $wpdb->term_relationships as refterms on ( terms.term_taxonomy_id = refterms.term_taxonomy_id and refterms.object_id = $reference_ID ) \n";
|
189 |
}
|
183 |
$disterms = wp_parse_id_list(join(',',$exclude));
|
184 |
$usedisterms = count($disterms);
|
185 |
if ( $usedisterms || count($tax_criteria) ) {
|
186 |
+
$newsql .= "left join $wpdb->term_relationships as terms on ( terms.object_id = $wpdb->posts.ID ) \n"
|
187 |
. "left join $wpdb->term_taxonomy as termtax on ( terms.term_taxonomy_id = termtax.term_taxonomy_id ) \n"
|
188 |
. "left join $wpdb->term_relationships as refterms on ( terms.term_taxonomy_id = refterms.term_taxonomy_id and refterms.object_id = $reference_ID ) \n";
|
189 |
}
|
readme.txt
CHANGED
@@ -173,6 +173,9 @@ If you are a bilingual speaker of English and another language and an avid user
|
|
173 |
|
174 |
== Changelog ==
|
175 |
|
|
|
|
|
|
|
176 |
= 3.4.1 =
|
177 |
* [Bugfix](http://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-34-images-problem-using-template): restore `global $post` access to custom templates
|
178 |
* [Bugfix](http://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-some-clarification-assistance) for missing `join_filter` on bypass cache
|
173 |
|
174 |
== Changelog ==
|
175 |
|
176 |
+
= 3.4.2 =
|
177 |
+
* [Bugfix](http://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-not-working-version-341-and-custom-template): 3.4 and 3.4.1 assumed existence of `wp_posts` table.
|
178 |
+
|
179 |
= 3.4.1 =
|
180 |
* [Bugfix](http://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-34-images-problem-using-template): restore `global $post` access to custom templates
|
181 |
* [Bugfix](http://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-some-clarification-assistance) for missing `join_filter` on bypass cache
|
yarpp-templates/yarpp-template-random.php
CHANGED
@@ -12,7 +12,7 @@ Author: mitcho (Michael Yoshitaka Erlewine)
|
|
12 |
</ol>
|
13 |
|
14 |
<?php else:
|
15 |
-
|
16 |
the_post();?>
|
17 |
<p>No related posts were found, so here's a consolation prize: <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>.</p>
|
18 |
<?php endif; ?>
|
12 |
</ol>
|
13 |
|
14 |
<?php else:
|
15 |
+
query_posts("orderby=rand&order=asc&limit=1");
|
16 |
the_post();?>
|
17 |
<p>No related posts were found, so here's a consolation prize: <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>.</p>
|
18 |
<?php endif; ?>
|
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.2b1
|
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.2b1');
|
13 |
define('YARPP_DIR', dirname(__FILE__));
|
14 |
define('YARPP_NO_RELATED', ':(');
|
15 |
define('YARPP_RELATED', ':)');
|