Version Description
Download this release
Release Info
Developer | mitchoyoshitaka |
Plugin | Yet Another Related Posts Plugin (YARPP) |
Version | 4.0.6b1 |
Comparing to | |
See all releases |
Code changes from version 4.0.5 to 4.0.6b1
- class-core.php +12 -0
- readme.txt +3 -0
- yarpp.php +2 -2
class-core.php
CHANGED
@@ -1181,6 +1181,10 @@ class YARPP {
|
|
1181 |
) )
|
1182 |
return $content;
|
1183 |
|
|
|
|
|
|
|
|
|
1184 |
if ( $this->get_option('cross_relate') )
|
1185 |
$post_types = $this->get_post_types();
|
1186 |
else
|
@@ -1198,6 +1202,10 @@ class YARPP {
|
|
1198 |
if ( !$this->get_option('rss_display') )
|
1199 |
return $content;
|
1200 |
|
|
|
|
|
|
|
|
|
1201 |
if ( $this->get_option('cross_relate') )
|
1202 |
$post_types = $this->get_post_types();
|
1203 |
else
|
@@ -1216,6 +1224,10 @@ class YARPP {
|
|
1216 |
!$this->get_option('rss_display') )
|
1217 |
return $content;
|
1218 |
|
|
|
|
|
|
|
|
|
1219 |
if ( $this->get_option('cross_relate') )
|
1220 |
$type = $this->get_post_types();
|
1221 |
else if ( 'page' == get_post_type() )
|
1181 |
) )
|
1182 |
return $content;
|
1183 |
|
1184 |
+
// if the content includes <!--noyarpp-->, don't display
|
1185 |
+
if ( stristr($content, '<!--noyarpp-->') !== false )
|
1186 |
+
return $content;
|
1187 |
+
|
1188 |
if ( $this->get_option('cross_relate') )
|
1189 |
$post_types = $this->get_post_types();
|
1190 |
else
|
1202 |
if ( !$this->get_option('rss_display') )
|
1203 |
return $content;
|
1204 |
|
1205 |
+
// if the content includes <!--noyarpp-->, don't display
|
1206 |
+
if ( stristr($content, '<!--noyarpp-->') !== false )
|
1207 |
+
return $content;
|
1208 |
+
|
1209 |
if ( $this->get_option('cross_relate') )
|
1210 |
$post_types = $this->get_post_types();
|
1211 |
else
|
1224 |
!$this->get_option('rss_display') )
|
1225 |
return $content;
|
1226 |
|
1227 |
+
// if the content includes <!--noyarpp-->, don't display
|
1228 |
+
if ( stristr($content, '<!--noyarpp-->') !== false )
|
1229 |
+
return $content;
|
1230 |
+
|
1231 |
if ( $this->get_option('cross_relate') )
|
1232 |
$type = $this->get_post_types();
|
1233 |
else if ( 'page' == get_post_type() )
|
readme.txt
CHANGED
@@ -258,6 +258,9 @@ If you are a bilingual speaker of English and another language and an avid user
|
|
258 |
|
259 |
== Changelog ==
|
260 |
|
|
|
|
|
|
|
261 |
= 4.0.5 =
|
262 |
* [Bugfix](https://wordpress.org/support/topic/bug-in-upgrading-from-yarp-3_5_2b2): Some upgrade code would try to access the global $yarpp before it was properly initialized
|
263 |
* Added experimental graph data method to the YARPP table cache class
|
258 |
|
259 |
== Changelog ==
|
260 |
|
261 |
+
= 4.0.6 =
|
262 |
+
* YARPP's automatic display will not run on posts which include the HTML comment `<!--noyarpp-->` [by request](https://wordpress.org/support/topic/disabling-yarrp-on-specific-pages).
|
263 |
+
|
264 |
= 4.0.5 =
|
265 |
* [Bugfix](https://wordpress.org/support/topic/bug-in-upgrading-from-yarp-3_5_2b2): Some upgrade code would try to access the global $yarpp before it was properly initialized
|
266 |
* Added experimental graph data method to the YARPP table cache class
|
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.6b1
|
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.6b1');
|
13 |
define('YARPP_DIR', dirname(__FILE__));
|
14 |
define('YARPP_NO_RELATED', ':(');
|
15 |
define('YARPP_RELATED', ':)');
|