Version Description
Download this release
Release Info
Developer | mitchoyoshitaka |
Plugin | Yet Another Related Posts Plugin (YARPP) |
Version | 3.0.8b4 |
Comparing to | |
See all releases |
Code changes from version 3.0.8b3 to 3.0.8b4
- includes.php +2 -1
- magic.php +6 -0
- readme.txt +4 -1
- yarpp.php +3 -3
includes.php
CHANGED
@@ -267,11 +267,12 @@ function yarpp_rss_excerpt($content) {
|
|
267 |
- Viper's Video Quicktags
|
268 |
- WP-CodeBox
|
269 |
- WP shortcodes
|
|
|
270 |
//- Tweet This - could not reproduce problem.
|
271 |
*/
|
272 |
|
273 |
$yarpp_blacklist = array(null,'yarpp_default','diggZEt_AddBut','reddZEt_AddBut','dzoneZEt_AddBut','wp_syntax_before_filter','wp_syntax_after_filter','wp_codebox_before_filter','wp_codebox_after_filter','do_shortcode');//,'insert_tweet_this'
|
274 |
-
$yarpp_blackmethods = array(null,'addinlinejs','replacebbcode');
|
275 |
|
276 |
function yarpp_white($filter) {
|
277 |
global $yarpp_blacklist;
|
267 |
- Viper's Video Quicktags
|
268 |
- WP-CodeBox
|
269 |
- WP shortcodes
|
270 |
+
- WP Greet Box
|
271 |
//- Tweet This - could not reproduce problem.
|
272 |
*/
|
273 |
|
274 |
$yarpp_blacklist = array(null,'yarpp_default','diggZEt_AddBut','reddZEt_AddBut','dzoneZEt_AddBut','wp_syntax_before_filter','wp_syntax_after_filter','wp_codebox_before_filter','wp_codebox_after_filter','do_shortcode');//,'insert_tweet_this'
|
275 |
+
$yarpp_blackmethods = array(null,'addinlinejs','replacebbcode','filter_content');
|
276 |
|
277 |
function yarpp_white($filter) {
|
278 |
global $yarpp_blacklist;
|
magic.php
CHANGED
@@ -296,6 +296,12 @@ function yarpp_related($type,$args,$echo = true,$reference_ID=false,$domain = 'w
|
|
296 |
$related_query->query("p=$reference_ID&orderby=".$orders[0]."&order=".$orders[1]."&showposts=$limit");
|
297 |
else
|
298 |
$related_query->query('');
|
|
|
|
|
|
|
|
|
|
|
|
|
299 |
|
300 |
if ($domain == 'metabox') {
|
301 |
include('template-metabox.php');
|
296 |
$related_query->query("p=$reference_ID&orderby=".$orders[0]."&order=".$orders[1]."&showposts=$limit");
|
297 |
else
|
298 |
$related_query->query('');
|
299 |
+
|
300 |
+
$wp_query = $related_query;
|
301 |
+
$wp_query->in_the_loop = true;
|
302 |
+
// make sure we get the right is_single value
|
303 |
+
// (see http://wordpress.org/support/topic/288230)
|
304 |
+
$wp_query->is_single = false;
|
305 |
|
306 |
if ($domain == 'metabox') {
|
307 |
include('template-metabox.php');
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://mitcho.com/code/yarpp/
|
|
6 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=66G4DATK4999L&item_name=mitcho%2ecom%2fcode%3a%20donate%20to%20Michael%20Yoshitaka%20Erlewine&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&charset=UTF%2d8
|
7 |
Tags: related, posts, post, pages, page, RSS, feed, feeds
|
8 |
Requires at least: 2.3
|
9 |
-
Tested up to: 2.8.
|
10 |
Stable tag: 3.0.7
|
11 |
|
12 |
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.
|
@@ -269,4 +269,7 @@ If you are a bilingual speaker of English and another language and an avid user
|
|
269 |
* Added Lithuanian localization
|
270 |
* Bugfix: [when ad-hoc caching was off, the cached status would always say "0% cached" ](http://wordpress.org/support/topic/286395)
|
271 |
* Bugfix: enabled Polish and Italian stopwords and [fixed encoding of Italian stopwords](http://wordpress.org/support/topic/288808).
|
|
|
|
|
|
|
272 |
|
6 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=66G4DATK4999L&item_name=mitcho%2ecom%2fcode%3a%20donate%20to%20Michael%20Yoshitaka%20Erlewine&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&charset=UTF%2d8
|
7 |
Tags: related, posts, post, pages, page, RSS, feed, feeds
|
8 |
Requires at least: 2.3
|
9 |
+
Tested up to: 2.8.2
|
10 |
Stable tag: 3.0.7
|
11 |
|
12 |
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.
|
269 |
* Added Lithuanian localization
|
270 |
* Bugfix: [when ad-hoc caching was off, the cached status would always say "0% cached" ](http://wordpress.org/support/topic/286395)
|
271 |
* Bugfix: enabled Polish and Italian stopwords and [fixed encoding of Italian stopwords](http://wordpress.org/support/topic/288808).
|
272 |
+
* Bugfix: `is_single` and other such flags are now set properly within the related posts Loop (as a result, now [compatible with WP Greet Box](http://wordpress.org/support/topic/288230))
|
273 |
+
* Confirmed compatibility with 2.8.2
|
274 |
+
* Bugfix: [the Related Posts metabox now respects the Screen Options](http://wordpress.org/support/topic/289290)
|
275 |
|
yarpp.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
Plugin Name: Yet Another Related Posts Plugin
|
4 |
Plugin URI: http://mitcho.com/code/yarpp/
|
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.0.
|
7 |
Author: mitcho (Michael Yoshitaka Erlewine)
|
8 |
Author URI: http://mitcho.com/
|
9 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=66G4DATK4999L&item_name=mitcho%2ecom%2fcode%3a%20donate%20to%20Michael%20Yoshitaka%20Erlewine&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&charset=UTF%2d8
|
10 |
*/
|
11 |
|
12 |
define('YARPP_NUMERICAL_VERSION','3.08');
|
13 |
-
define('YARPP_VERSION','3.
|
14 |
|
15 |
require_once('includes.php');
|
16 |
require_once('related-functions.php');
|
@@ -31,7 +31,7 @@ add_action('plugins_loaded', 'widget_yarpp_init');
|
|
31 |
add_action( 'admin_menu', 'yarpp_add_metabox');
|
32 |
function yarpp_add_metabox() {
|
33 |
if (function_exists('add_meta_box')) {
|
34 |
-
add_meta_box(
|
35 |
}
|
36 |
}
|
37 |
function yarpp_metabox() {
|
3 |
Plugin Name: Yet Another Related Posts Plugin
|
4 |
Plugin URI: http://mitcho.com/code/yarpp/
|
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.0.8b4
|
7 |
Author: mitcho (Michael Yoshitaka Erlewine)
|
8 |
Author URI: http://mitcho.com/
|
9 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=66G4DATK4999L&item_name=mitcho%2ecom%2fcode%3a%20donate%20to%20Michael%20Yoshitaka%20Erlewine&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&charset=UTF%2d8
|
10 |
*/
|
11 |
|
12 |
define('YARPP_NUMERICAL_VERSION','3.08');
|
13 |
+
define('YARPP_VERSION','3.08b4');
|
14 |
|
15 |
require_once('includes.php');
|
16 |
require_once('related-functions.php');
|
31 |
add_action( 'admin_menu', 'yarpp_add_metabox');
|
32 |
function yarpp_add_metabox() {
|
33 |
if (function_exists('add_meta_box')) {
|
34 |
+
add_meta_box( 'yarpp_relatedposts', __( 'Related Posts' , 'yarpp'), 'yarpp_metabox', 'post', 'normal' );
|
35 |
}
|
36 |
}
|
37 |
function yarpp_metabox() {
|