Yet Another Related Posts Plugin (YARPP) - Version 5.1.3

Version Description

(2020-04-07) = * Support for WordPress 5.4+ * Enhancement: Switch over to secure (https) endpoints

Download this release

Release Info

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

Code changes from version 5.1.2 to 5.1.3

classes/YARPP_Core.php CHANGED
@@ -1488,7 +1488,7 @@ class YARPP {
1488
  if (!$enforce_cache && false !== ($result = $this->get_transient('yarpp_version_info'))) return $result;
1489
 
1490
  $version = YARPP_VERSION;
1491
- $remote = wp_remote_post("http://yarpp.org/checkversion.php?format=php&version={$version}");
1492
 
1493
  if (is_wp_error($remote) || wp_remote_retrieve_response_code($remote) != 200 || !isset($remote['body'])){
1494
  $this->set_transient('yarpp_version_info', null, 60*60);
@@ -1506,7 +1506,7 @@ class YARPP {
1506
  public function optin_ping() {
1507
  if ($this->get_transient('yarpp_optin')) return true;
1508
 
1509
- $remote = wp_remote_post('http://yarpp.org/optin/2/', array('body' => $this->optin_data()));
1510
 
1511
  if (is_wp_error($remote)
1512
  || wp_remote_retrieve_response_code($remote) != 200
1488
  if (!$enforce_cache && false !== ($result = $this->get_transient('yarpp_version_info'))) return $result;
1489
 
1490
  $version = YARPP_VERSION;
1491
+ $remote = wp_remote_post("https://yarpp.org/checkversion.php?format=php&version={$version}");
1492
 
1493
  if (is_wp_error($remote) || wp_remote_retrieve_response_code($remote) != 200 || !isset($remote['body'])){
1494
  $this->set_transient('yarpp_version_info', null, 60*60);
1506
  public function optin_ping() {
1507
  if ($this->get_transient('yarpp_optin')) return true;
1508
 
1509
+ $remote = wp_remote_post('https://yarpp.org/optin/2/', array('body' => $this->optin_data()));
1510
 
1511
  if (is_wp_error($remote)
1512
  || wp_remote_retrieve_response_code($remote) != 200
classes/YARPP_Meta_Box_Display_Feed.php CHANGED
@@ -55,6 +55,6 @@ class YARPP_Meta_Box_Display_Feed extends YARPP_Meta_Box {
55
 
56
  $this->displayorder( 'rss_order', 'rss_displayed' );
57
 
58
- $this->checkbox( 'rss_promote_yarpp', __( "Help promote Yet Another Related Posts Plugin?", 'yarpp' ) . " <span class='yarpp_help' data-help='" . esc_attr( sprintf( __( "This option will add the code %s. Try turning it on, updating your options, and see the code in the code example to the right. These links are greatly appreciated.", 'yarpp' ), "<code>" . htmlspecialchars( sprintf( __( "Related posts brought to you by <a href='%s' title='WordPress Related Posts Plugin' target='_blank'>YARPP</a>.", 'yarpp' ), 'http://www.yarpp.com' ) )."</code>" ) ) . "'>&nbsp;</span>", 'rss_displayed' );
59
  }
60
  }
55
 
56
  $this->displayorder( 'rss_order', 'rss_displayed' );
57
 
58
+ $this->checkbox( 'rss_promote_yarpp', __( "Help promote Yet Another Related Posts Plugin?", 'yarpp' ) . " <span class='yarpp_help' data-help='" . esc_attr( sprintf( __( "This option will add the code %s. Try turning it on, updating your options, and see the code in the code example to the right. These links are greatly appreciated.", 'yarpp' ), "<code>" . htmlspecialchars( sprintf( __( "Related posts brought to you by <a href='%s' title='WordPress Related Posts Plugin' target='_blank'>YARPP</a>.", 'yarpp' ), 'https://yarpp.com' ) )."</code>" ) ) . "'>&nbsp;</span>", 'rss_displayed' );
59
  }
60
  }
classes/YARPP_Meta_Box_Display_Web.php CHANGED
@@ -65,6 +65,6 @@ class YARPP_Meta_Box_Display_Web extends YARPP_Meta_Box {
65
  echo "</div>";
66
 
67
  $this->displayorder( 'order' );
68
- $this->checkbox( 'promote_yarpp', __( "Help promote Yet Another Related Posts Plugin?", 'yarpp' ) . " <span class='yarpp_help' data-help='" . esc_attr( sprintf( __( "This option will add the code %s. Try turning it on, updating your options, and see the code in the code example to the right. These links are greatly appreciated.", 'yarpp' ), "<code>" . htmlspecialchars( sprintf( __( "Related posts brought to you by <a href='%s' title='WordPress Related Posts Plugin' target='_blank'>YARPP</a>.", 'yarpp' ), 'http://www.yarpp.com' ) )."</code>" ) ) . "'>&nbsp;</span>", 'yarpp' );
69
  }
70
  }
65
  echo "</div>";
66
 
67
  $this->displayorder( 'order' );
68
+ $this->checkbox( 'promote_yarpp', __( "Help promote Yet Another Related Posts Plugin?", 'yarpp' ) . " <span class='yarpp_help' data-help='" . esc_attr( sprintf( __( "This option will add the code %s. Try turning it on, updating your options, and see the code in the code example to the right. These links are greatly appreciated.", 'yarpp' ), "<code>" . htmlspecialchars( sprintf( __( "Related posts brought to you by <a href='%s' title='WordPress Related Posts Plugin' target='_blank'>YARPP</a>.", 'yarpp' ), 'https://yarpp.com' ) )."</code>" ) ) . "'>&nbsp;</span>", 'yarpp' );
69
  }
70
  }
classes/YARPP_Meta_Box_Optin.php CHANGED
@@ -4,11 +4,11 @@ class YARPP_Meta_Box_Optin extends YARPP_Meta_Box {
4
  public function display() {
5
  $output =
6
  '<p>'.
7
- 'Enable the free <a href="http://www.yarpp.com" target="_blank">YARPP Pro enhancements</a> to add even '.
8
  'more power to your blog or website!'.
9
  '<br/><br/>'.
10
  '<a class="yarpp_switch_button button" data-go="pro">Turn them on now</a>&nbsp;&nbsp;'.
11
- '<a href="http://www.yarpp.com" target="_blank" style="float:right;text-decoration:underline">Learn more</a>'.
12
  '</p>'.
13
  '<p>'.
14
  'We can continue to improve the YARPP product for you if we know how it&#39;s used. Please help us by '.
4
  public function display() {
5
  $output =
6
  '<p>'.
7
+ 'Enable the free <a href="https://yarpp.com" target="_blank">YARPP Pro enhancements</a> to add even '.
8
  'more power to your blog or website!'.
9
  '<br/><br/>'.
10
  '<a class="yarpp_switch_button button" data-go="pro">Turn them on now</a>&nbsp;&nbsp;'.
11
+ '<a href="https://yarpp.com" target="_blank" style="float:right;text-decoration:underline">Learn more</a>'.
12
  '</p>'.
13
  '<p>'.
14
  'We can continue to improve the YARPP product for you if we know how it&#39;s used. Please help us by '.
lang/yarpp-gb_IR.po CHANGED
@@ -518,7 +518,7 @@ msgstr ""
518
  #: options-meta-boxes.php:205
519
  #: options-meta-boxes.php:269
520
  #@ yarpp
521
- msgid "Related posts brought to you by <a href='http://www.yarpp.com'>Yet Another Related Posts Plugin</a>."
522
  msgstr ""
523
 
524
  #: options-meta-boxes.php:283
518
  #: options-meta-boxes.php:205
519
  #: options-meta-boxes.php:269
520
  #@ yarpp
521
+ msgid "Related posts brought to you by <a href='https://yarpp.com'>Yet Another Related Posts Plugin</a>."
522
  msgstr ""
523
 
524
  #: options-meta-boxes.php:283
readme.txt CHANGED
@@ -4,8 +4,8 @@ Tags: related, related posts, similar posts, posts, pages, thumbnails, feeds, mu
4
  Requires at least: 3.7
5
  Requires PHP: 5.2
6
  License: GPLv2 or later
7
- Tested up to: 5.3
8
- Stable tag: 5.1.2
9
 
10
  Display a list of related posts on your site based on a powerful unique algorithm. Optionally, earn money by including sponsored content.
11
 
@@ -249,6 +249,10 @@ add_action('admin_init', 'yarpp_disable_review_notice', 11);
249
  `
250
 
251
  == Changelog ==
 
 
 
 
252
  = 5.1.2 (2019-11-06) =
253
  * Support for WordPress 5.3+
254
 
@@ -907,6 +911,6 @@ After a break of many years, the plugin is 100% supported now that the baton has
907
  * Initial upload
908
 
909
  == Upgrade Notice ==
910
- = 5.1.2 =
911
  We update this plugin regularly so we can make it better for you. Update to the latest version for all of the available features and improvements. Thank you for using YARPP!
912
 
4
  Requires at least: 3.7
5
  Requires PHP: 5.2
6
  License: GPLv2 or later
7
+ Tested up to: 5.4
8
+ Stable tag: 5.1.3
9
 
10
  Display a list of related posts on your site based on a powerful unique algorithm. Optionally, earn money by including sponsored content.
11
 
249
  `
250
 
251
  == Changelog ==
252
+ = 5.1.3 (2020-04-07) =
253
+ * Support for WordPress 5.4+
254
+ * Enhancement: Switch over to secure (https) endpoints
255
+
256
  = 5.1.2 (2019-11-06) =
257
  * Support for WordPress 5.3+
258
 
911
  * Initial upload
912
 
913
  == Upgrade Notice ==
914
+ = 5.1.3 =
915
  We update this plugin regularly so we can make it better for you. Update to the latest version for all of the available features and improvements. Thank you for using YARPP!
916
 
yarpp.php CHANGED
@@ -2,10 +2,10 @@
2
  /*
3
  Plugin Name: Yet Another Related Posts Plugin
4
  Description: Adds related posts to your site and in RSS feeds, based on a powerful, customizable algorithm.
5
- Version: 5.1.2
6
  Author: YARPP
7
- Author URI: http://www.yarpp.com/
8
- Plugin URI: http://www.yarpp.com/
9
  */
10
 
11
  /**
@@ -23,7 +23,7 @@ if(!defined('WP_CONTENT_DIR')){
23
  define('WP_CONTENT_DIR', substr($tr,0,strrpos($tr,'/')));
24
  }
25
 
26
- define('YARPP_VERSION', '5.1.2');
27
  define('YARPP_DIR', dirname(__FILE__));
28
  define('YARPP_URL', plugins_url('',__FILE__));
29
  define('YARPP_NO_RELATED', ':(');
2
  /*
3
  Plugin Name: Yet Another Related Posts Plugin
4
  Description: Adds related posts to your site and in RSS feeds, based on a powerful, customizable algorithm.
5
+ Version: 5.1.3
6
  Author: YARPP
7
+ Author URI: https://yarpp.com/
8
+ Plugin URI: https://yarpp.com/
9
  */
10
 
11
  /**
23
  define('WP_CONTENT_DIR', substr($tr,0,strrpos($tr,'/')));
24
  }
25
 
26
+ define('YARPP_VERSION', '5.1.3');
27
  define('YARPP_DIR', dirname(__FILE__));
28
  define('YARPP_URL', plugins_url('',__FILE__));
29
  define('YARPP_NO_RELATED', ':(');