Yet Another Related Posts Plugin (YARPP) - Version 3.5.5

Version Description

  • Quick bugfix for how admin screen code was loaded in in WordPress < 3.3.
Download this release

Release Info

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

Code changes from version 3.5.4 to 3.5.5

Files changed (3) hide show
  1. class-admin.php +17 -13
  2. readme.txt +4 -3
  3. yarpp.php +2 -2
class-admin.php CHANGED
@@ -17,7 +17,7 @@ class YARPP_Admin {
17
 
18
  add_action( 'admin_init', array( $this, 'ajax_register' ) );
19
  add_action( 'admin_menu', array( $this, 'ui_register' ) );
20
- add_action( 'current_screen', array( $this, 'settings_screen' ), 10, 1 );
21
  // new in 3.3: set default meta boxes to show:
22
  add_filter( 'default_hidden_meta_boxes', array( $this, 'default_hidden_meta_boxes' ), 10, 2 );
23
  }
@@ -68,22 +68,26 @@ class YARPP_Admin {
68
  // 3.5.4: only load metabox code if we're going to be on the settings page
69
  function settings_screen( $current_screen ) {
70
  if ( $current_screen->id != 'settings_page_yarpp' )
71
- return;
72
 
73
  // new in 3.3: load options page sections as metaboxes
74
  require_once('options-meta-boxes.php');
75
 
76
- $current_screen->add_help_tab(array(
77
- 'id' => 'faq',
78
- 'title' => __('Frequently Asked Questions', 'yarpp'),
79
- 'callback' => array( &$this, 'help_faq' )
80
- ));
81
-
82
- $current_screen->add_help_tab(array(
83
- 'id' => 'dev',
84
- 'title' => __('Developing with YARPP', 'yarpp'),
85
- 'callback' => array( &$this, 'help_dev' )
86
- ));
 
 
 
 
87
  }
88
 
89
  private $readme = null;
17
 
18
  add_action( 'admin_init', array( $this, 'ajax_register' ) );
19
  add_action( 'admin_menu', array( $this, 'ui_register' ) );
20
+ add_filter( 'current_screen', array( $this, 'settings_screen' ) );
21
  // new in 3.3: set default meta boxes to show:
22
  add_filter( 'default_hidden_meta_boxes', array( $this, 'default_hidden_meta_boxes' ), 10, 2 );
23
  }
68
  // 3.5.4: only load metabox code if we're going to be on the settings page
69
  function settings_screen( $current_screen ) {
70
  if ( $current_screen->id != 'settings_page_yarpp' )
71
+ return $current_screen;
72
 
73
  // new in 3.3: load options page sections as metaboxes
74
  require_once('options-meta-boxes.php');
75
 
76
+ // 3.5.5: check that add_help_tab method callable (WP >= 3.3)
77
+ if ( is_callable(array($current_screen, 'add_help_tab')) ) {
78
+ $current_screen->add_help_tab(array(
79
+ 'id' => 'faq',
80
+ 'title' => __('Frequently Asked Questions', 'yarpp'),
81
+ 'callback' => array( &$this, 'help_faq' )
82
+ ));
83
+ $current_screen->add_help_tab(array(
84
+ 'id' => 'dev',
85
+ 'title' => __('Developing with YARPP', 'yarpp'),
86
+ 'callback' => array( &$this, 'help_dev' )
87
+ ));
88
+ }
89
+
90
+ return $current_screen;
91
  }
92
 
93
  private $readme = null;
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.1
9
  Tested up to: 3.5
10
- Stable tag: 3.5.4
11
  License: GPLv2 or later
12
 
13
  Display a list of related entries on your site and feeds based on a unique algorithm. Now with custom post type support!
@@ -227,8 +227,10 @@ If you are a bilingual speaker of English and another language and an avid user
227
 
228
  == Changelog ==
229
 
230
- = 3.5.4 =
 
231
 
 
232
  * New Help tab, which displays help text from the readme.
233
  * Retina icons! Now served faster, in sprite form.
234
  * Added Croatian (`hr`) localization by [gocroatia.com](http://gocroatia.com)
@@ -239,7 +241,6 @@ If you are a bilingual speaker of English and another language and an avid user
239
  * Changed default option of "show only previous posts" to `false` and removed FAQ text, as it no longer improves performance much.
240
 
241
  = 3.5.3 =
242
-
243
  * [Bugfix](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-no-related-posts-7): Fixed a common cause of "no related posts"!
244
  * Better post revision handling
245
  * [Bugfix](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-database-errors-upon-activation): setup wasn't automatic for network activations.
7
  Tags: related, posts, post, pages, page, RSS, feed, feeds
8
  Requires at least: 3.1
9
  Tested up to: 3.5
10
+ Stable tag: 3.5.5
11
  License: GPLv2 or later
12
 
13
  Display a list of related entries on your site and feeds based on a unique algorithm. Now with custom post type support!
227
 
228
  == Changelog ==
229
 
230
+ = 3.5.5 =
231
+ * Quick bugfix for how admin screen code was loaded in in WordPress < 3.3.
232
 
233
+ = 3.5.4 =
234
  * New Help tab, which displays help text from the readme.
235
  * Retina icons! Now served faster, in sprite form.
236
  * Added Croatian (`hr`) localization by [gocroatia.com](http://gocroatia.com)
241
  * Changed default option of "show only previous posts" to `false` and removed FAQ text, as it no longer improves performance much.
242
 
243
  = 3.5.3 =
 
244
  * [Bugfix](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-no-related-posts-7): Fixed a common cause of "no related posts"!
245
  * Better post revision handling
246
  * [Bugfix](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-database-errors-upon-activation): setup wasn't automatic for network activations.
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 custom post type support!
6
- Version: 3.5.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.5.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. Now with custom post type support!
6
+ Version: 3.5.5
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.5.5');
13
  define('YARPP_DIR', dirname(__FILE__));
14
  define('YARPP_NO_RELATED', ':(');
15
  define('YARPP_RELATED', ':)');