Version Description
Download this release
Release Info
Developer | mitchoyoshitaka |
Plugin | Yet Another Related Posts Plugin (YARPP) |
Version | 4.0.4b2 |
Comparing to | |
See all releases |
Code changes from version 4.0.4b1 to 4.0.4b2
- class-widget.php +2 -5
- readme.txt +1 -0
- yarpp.php +2 -2
class-widget.php
CHANGED
@@ -18,13 +18,10 @@ class YARPP_Widget extends WP_Widget {
|
|
18 |
if ( isset($instance['use_template']) )
|
19 |
$instance['template'] = $instance['use_template'] ? $instance['template_file'] : false;
|
20 |
|
21 |
-
// $choice = false === $instance['template'] ? 'builtin' :
|
22 |
-
// ( $instance['template'] == 'thumbnails' ? 'thumbnails' : 'custom' );
|
23 |
-
|
24 |
if ( $yarpp->get_option('cross_relate') )
|
25 |
$instance['post_type'] = $yarpp->get_post_types();
|
26 |
-
else if (
|
27 |
-
$instance['post_type'] = array(
|
28 |
else
|
29 |
$instance['post_type'] = array( 'post' );
|
30 |
|
18 |
if ( isset($instance['use_template']) )
|
19 |
$instance['template'] = $instance['use_template'] ? $instance['template_file'] : false;
|
20 |
|
|
|
|
|
|
|
21 |
if ( $yarpp->get_option('cross_relate') )
|
22 |
$instance['post_type'] = $yarpp->get_post_types();
|
23 |
+
else if ( in_array(get_post_type(), $yarpp->get_post_types()) )
|
24 |
+
$instance['post_type'] = array( get_post_type() );
|
25 |
else
|
26 |
$instance['post_type'] = array( 'post' );
|
27 |
|
readme.txt
CHANGED
@@ -259,6 +259,7 @@ If you are a bilingual speaker of English and another language and an avid user
|
|
259 |
|
260 |
= 4.0.4 =
|
261 |
* [Bugfix](https://wordpress.org/support/topic/yarp-403-breaks-paginated-posts): 4.0.3 broke some paginated post displays
|
|
|
262 |
* Updated French localization and stopword list
|
263 |
|
264 |
= 4.0.3 =
|
259 |
|
260 |
= 4.0.4 =
|
261 |
* [Bugfix](https://wordpress.org/support/topic/yarp-403-breaks-paginated-posts): 4.0.3 broke some paginated post displays
|
262 |
+
* [Bugfix](https://wordpress.org/support/topic/custom-post-type-support-on-widget): custom post type support was not working properly in widget displays
|
263 |
* Updated French localization and stopword list
|
264 |
|
265 |
= 4.0.3 =
|
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. Now with Now with thumbnail support built-in!
|
6 |
-
Version: 4.0.
|
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', '4.0.
|
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. Now with Now with thumbnail support built-in!
|
6 |
+
Version: 4.0.4b2
|
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', '4.0.4b2');
|
13 |
define('YARPP_DIR', dirname(__FILE__));
|
14 |
define('YARPP_NO_RELATED', ':(');
|
15 |
define('YARPP_RELATED', ':)');
|