Version Description
Download this release
Release Info
Developer | mitchoyoshitaka |
Plugin | Yet Another Related Posts Plugin (YARPP) |
Version | 3.4.1b5 |
Comparing to | |
See all releases |
Code changes from version 3.4.1b4 to 3.4.1b5
- class-cache.php +1 -1
- class-core.php +3 -0
- js/options.js +9 -2
- readme.txt +4 -1
- yarpp.php +2 -2
class-cache.php
CHANGED
@@ -171,7 +171,7 @@ abstract class YARPP_Cache {
|
|
171 |
// 1 means don't consider:
|
172 |
if ($value == 1)
|
173 |
continue;
|
174 |
-
$tax_criteria[$tax] = "count(distinct if( termtax.taxonomy = '$tax',
|
175 |
$newsql .= " + " . $tax_criteria[$tax];
|
176 |
}
|
177 |
|
171 |
// 1 means don't consider:
|
172 |
if ($value == 1)
|
173 |
continue;
|
174 |
+
$tax_criteria[$tax] = "count(distinct if( termtax.taxonomy = '$tax', refterms.term_taxonomy_id, null ))";
|
175 |
$newsql .= " + " . $tax_criteria[$tax];
|
176 |
}
|
177 |
|
class-core.php
CHANGED
@@ -246,6 +246,9 @@ class YARPP {
|
|
246 |
$this->upgrade_3_4b8();
|
247 |
|
248 |
$this->cache->upgrade($last_version);
|
|
|
|
|
|
|
249 |
|
250 |
$this->version_info(true);
|
251 |
|
246 |
$this->upgrade_3_4b8();
|
247 |
|
248 |
$this->cache->upgrade($last_version);
|
249 |
+
// flush cache in 3.4.1b5 as 3.4 messed up calculations.
|
250 |
+
if ( $last_version && version_compare('3.4.1b5', $last_version) > 0 )
|
251 |
+
$this->cache->flush();
|
252 |
|
253 |
$this->version_info(true);
|
254 |
|
js/options.js
CHANGED
@@ -135,7 +135,13 @@ jQuery(function($) {
|
|
135 |
);
|
136 |
}
|
137 |
|
138 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
load_disallow(taxonomy);
|
140 |
$('#exclude_' + taxonomy).parent('.scroll_wrapper').scroll(function() {
|
141 |
var parent = $(this),
|
@@ -143,7 +149,8 @@ jQuery(function($) {
|
|
143 |
if ( parent.scrollTop() + parent.height() > content.height() - 10 )
|
144 |
load_disallow(taxonomy);
|
145 |
})
|
146 |
-
})
|
|
|
147 |
}
|
148 |
$('#yarpp_pool .handlediv, #yarpp_pool-hide').click(load_disallows);
|
149 |
load_disallows();
|
135 |
);
|
136 |
}
|
137 |
|
138 |
+
$('.exclude_terms').each(function() {
|
139 |
+
var id = jQuery(this).attr('id'), taxonomy;
|
140 |
+
if (!id)
|
141 |
+
return;
|
142 |
+
|
143 |
+
taxonomy = id.replace('exclude_','');
|
144 |
+
|
145 |
load_disallow(taxonomy);
|
146 |
$('#exclude_' + taxonomy).parent('.scroll_wrapper').scroll(function() {
|
147 |
var parent = $(this),
|
149 |
if ( parent.scrollTop() + parent.height() > content.height() - 10 )
|
150 |
load_disallow(taxonomy);
|
151 |
})
|
152 |
+
})
|
153 |
+
|
154 |
}
|
155 |
$('#yarpp_pool .handlediv, #yarpp_pool-hide').click(load_disallows);
|
156 |
load_disallows();
|
readme.txt
CHANGED
@@ -176,7 +176,10 @@ If you are a bilingual speaker of English and another language and an avid user
|
|
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
|
179 |
-
*
|
|
|
|
|
|
|
180 |
* Add defaults for the `post_type` arg
|
181 |
* Strengthen default post ID values for `related_*` functions
|
182 |
* Updated `sv_SE`, `ko_KR`, `fr_FR` localizations
|
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
|
179 |
+
* Bugfixes to query changes:
|
180 |
+
* [Bugfix](http://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-34-images-problem-using-template/page/2?replies=36#post-2498791): Shared taxonomy terms were not counted correctly
|
181 |
+
* [Bugfix](http://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-use-2-times-related_posts-in-the-singlephp-longer-works): exclusion was not working
|
182 |
+
* [Bugfix](http://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-34-images-problem-using-template/page/2?replies=36#post-2498791): "disallow" terms were not being displayed for custom taxonomies.
|
183 |
* Add defaults for the `post_type` arg
|
184 |
* Strengthen default post ID values for `related_*` functions
|
185 |
* Updated `sv_SE`, `ko_KR`, `fr_FR` localizations
|
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.1b5
|
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.1b5');
|
13 |
define('YARPP_DIR', dirname(__FILE__));
|
14 |
define('YARPP_NO_RELATED', ':(');
|
15 |
define('YARPP_RELATED', ':)');
|