Yet Another Related Posts Plugin (YARPP) - Version 3.4.1

Version Description

  • Bugfix: restore global $post access to custom templates
  • Bugfix for missing join_filter on bypass cache
  • Bugfixes to query changes:
    • Bugfix: Shared taxonomy terms were not counted correctly
    • Bugfix: exclusion was not working
  • Bugfix: "disallow" terms were not being displayed for custom taxonomies.
  • Add defaults for the post_type arg
  • Strengthen default post ID values for related_* functions
  • Added nonce to cache flushing. If you would like to manually flush the cache now, you must use the YARPP Experiments plugin.
  • Updated sv_SE, ko_KR, fr_FR localizations
Download this release

Release Info

Developer mitchoyoshitaka
Plugin Icon 128x128 Yet Another Related Posts Plugin (YARPP)
Version 3.4.1
Comparing to
See all releases

Code changes from version 3.4.1b5 to 3.4.1

Files changed (4) hide show
  1. class-admin.php +8 -0
  2. options.php +0 -5
  3. readme.txt +2 -1
  4. yarpp.php +2 -2
class-admin.php CHANGED
@@ -7,6 +7,14 @@ class YARPP_Admin {
7
function __construct( &$core ) {
8
$this->core = &$core;
9
10
add_action( 'admin_init', array($this, 'ajax_register') );
11
add_action( 'admin_menu', array( $this, 'ui_register' ) );
12
// new in 3.3: set default meta boxes to show:
7
function __construct( &$core ) {
8
$this->core = &$core;
9
10
+ // if action=flush and the nonce is correct, reset the cache
11
+ if ( isset($_GET['action']) && $_GET['action'] == 'flush' &&
12
+ check_ajax_referer( 'yarpp_cache_flush', false, false ) !== false ) {
13
+ $this->core->cache->flush();
14
+ wp_redirect( admin_url( '/options-general.php?page=yarpp' ) );
15
+ exit;
16
+ }
17
+
18
add_action( 'admin_init', array($this, 'ajax_register') );
19
add_action( 'admin_menu', array( $this, 'ui_register' ) );
20
// new in 3.3: set default meta boxes to show:
options.php CHANGED
@@ -8,11 +8,6 @@ if ( !get_option('yarpp_version') )
8
else
9
$yarpp->upgrade_check();
10
11
- // if action=flush, reset the cache
12
- if (isset($_GET['action']) && $_GET['action'] == 'flush') {
13
- $yarpp->cache->flush();
14
- }
15
-
16
// check to see that templates are in the right place
17
$yarpp->templates = glob(STYLESHEETPATH . '/yarpp-template-*.php');
18
if ( !(is_array($yarpp->templates) && count($yarpp->templates)) ) {
8
else
9
$yarpp->upgrade_check();
10
11
// check to see that templates are in the right place
12
$yarpp->templates = glob(STYLESHEETPATH . '/yarpp-template-*.php');
13
if ( !(is_array($yarpp->templates) && count($yarpp->templates)) ) {
readme.txt CHANGED
@@ -7,7 +7,7 @@ Donate link: http://tinyurl.com/donatetomitcho
7
Tags: related, posts, post, pages, page, RSS, feed, feeds
8
Requires at least: 3.0
9
Tested up to: 3.3
10
- Stable tag: 3.4
11
12
Display a list of related entries on your site and feeds based on a unique algorithm. Templating allows customization of the display.
13
@@ -182,6 +182,7 @@ If you are a bilingual speaker of English and another language and an avid user
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
186
= 3.4 =
187
* Major optimizations to the main related posts query, in particular with regard to taxonomy lookups
7
Tags: related, posts, post, pages, page, RSS, feed, feeds
8
Requires at least: 3.0
9
Tested up to: 3.3
10
+ Stable tag: 3.4.1
11
12
Display a list of related entries on your site and feeds based on a unique algorithm. Templating allows customization of the display.
13
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
+ * Added nonce to cache flushing. If you would like to manually flush the cache now, you must use the [YARPP Experiments](http://wordpress.org/extend/plugins/yarpp-experiments/) plugin.
186
* Updated `sv_SE`, `ko_KR`, `fr_FR` localizations
187
= 3.4 =
188
* Major optimizations to the main related posts query, in particular with regard to taxonomy lookups
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.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', ':)');
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.1
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.1');
13
define('YARPP_DIR', dirname(__FILE__));
14
define('YARPP_NO_RELATED', ':(');
15
define('YARPP_RELATED', ':)');