Related Posts Thumbnails Plugin for WordPress - Version 1.5.2

Version Description

  • [BugFix] Top Text title allows h1 to h6 tags now.
Download this release

Release Info

Developer hiddenpearls
Plugin Icon 128x128 Related Posts Thumbnails Plugin for WordPress
Version 1.5.2
Comparing to
See all releases

Code changes from version 1.5.1 to 1.5.2

Files changed (2) hide show
  1. readme.txt +13 -7
  2. related-posts-thumbnails.php +13 -2
readme.txt CHANGED
@@ -1,16 +1,16 @@
1
- === Related Posts Thumbnails ===
2
- Contributors: marynixie
3
  Donate link: http://wordpress.shaldybina.com/donate
4
- Tags: related, posts, thumbnails, Related Content, related posts, pages, similar posts, shortcodes, widgets
5
  Requires at least: 2.9
6
  Tested up to: 4.5.3
7
- Stable tag: 1.5.1
8
 
9
- The Best Customizable plugin, that nicely displays related posts thumbnails under the post.
10
 
11
  == Description ==
12
 
13
- This plugin will add related posts thumbnails after the post. Plugin allows to customize thumbnail sizes, display settings and type of relation.
14
 
15
  By default it uses generated by Wordpress thumbnail for the first image appeared in the post, that was uploaded on the server with sizes as set in Media settings. You can select between 'thumbnail' and 'medium' size options. In addition if your theme supports Post Thumbnails feature introduced in Wordpress 2.9 you can specify custom thumbnail size. You can also specify post custom field name to be used as thumbnails source.
16
 
@@ -20,7 +20,7 @@ You can specify number of related posts to display, start date, categories to sh
20
 
21
  Contributions:
22
 
23
- * Thanks to <a href="http://adnan.pk/">Adnan</a> for updates to make it compatible with Wordpress 4.4 and 4.5
24
 
25
  Translations:
26
 
@@ -65,6 +65,9 @@ If there are no images of the specified size in the post, or file does not exist
65
 
66
  == Changelog ==
67
 
 
 
 
68
  = 1.5.1 =
69
  * [BugFix] Removed deprecated constructors for Related Posts widget. Compatible with PHP 7.0
70
 
@@ -149,6 +152,9 @@ If there are no images of the specified size in the post, or file does not exist
149
 
150
  == Upgrade Notice ==
151
 
 
 
 
152
  = 1.5.1 =
153
 
154
  [BugFix] Removed deprecated constructors for Related Posts widget. Compatible with PHP 7.0
1
+ === Related Posts ===
2
+ Contributors: marynixie, hiddenpearls
3
  Donate link: http://wordpress.shaldybina.com/donate
4
+ Tags: related, posts, thumbnails, Related Content, related posts, pages, similar posts, shortcodes, widgets, related thumbs
5
  Requires at least: 2.9
6
  Tested up to: 4.5.3
7
+ Stable tag: 1.5.2
8
 
9
+ Related Posts is The Best Customizable plugin, that nicely displays related posts thumbnails under the post.
10
 
11
  == Description ==
12
 
13
+ Related Posts is a plugin will add related posts thumbnails after the post. This Related Posts Plugin allows to customize thumbnail sizes, display settings and type of relation.
14
 
15
  By default it uses generated by Wordpress thumbnail for the first image appeared in the post, that was uploaded on the server with sizes as set in Media settings. You can select between 'thumbnail' and 'medium' size options. In addition if your theme supports Post Thumbnails feature introduced in Wordpress 2.9 you can specify custom thumbnail size. You can also specify post custom field name to be used as thumbnails source.
16
 
20
 
21
  Contributions:
22
 
23
+ * Thanks to <a href="http://adnan.pk/">Adnan</a> for giving life to this plugin.
24
 
25
  Translations:
26
 
65
 
66
  == Changelog ==
67
 
68
+ = 1.5.2 =
69
+ * [BugFix] Top Text title allows h1 to h6 tags now.
70
+
71
  = 1.5.1 =
72
  * [BugFix] Removed deprecated constructors for Related Posts widget. Compatible with PHP 7.0
73
 
152
 
153
  == Upgrade Notice ==
154
 
155
+ = 1.5.2 =
156
+ * [BugFix] Top Text title allows h1 to h6 tags now.
157
+
158
  = 1.5.1 =
159
 
160
  [BugFix] Removed deprecated constructors for Related Posts widget. Compatible with PHP 7.0
related-posts-thumbnails.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Related Posts Thumbnails
4
  * Plugin URI: http://wordpress.shaldybina.com/plugins/related-posts-thumbnails/
5
  * Description: Showing related posts thumbnails under the post.
6
- * Version: 1.5.1
7
  * Author: Maria Shaldybina
8
  * Author URI: http://shaldybina.com/
9
  */
@@ -48,6 +48,17 @@ class RelatedPostsThumbnails {
48
  var $post_types = array( 'post' );
49
  var $custom_taxonomies = array();
50
 
 
 
 
 
 
 
 
 
 
 
 
51
  function __construct() {
52
  // initialization
53
  load_plugin_textdomain( 'related-posts-thumbnails', false, basename( dirname( __FILE__ ) ) . '/locale' );
@@ -500,7 +511,7 @@ class RelatedPostsThumbnails {
500
  }
501
 
502
  if( isset( $_POST['relpoststh_top_text'] ) ) {
503
- update_option( 'relpoststh_top_text', sanitize_text_field( wp_unslash( $_POST['relpoststh_top_text'] ) ) );
504
  }
505
 
506
 
3
  * Plugin Name: Related Posts Thumbnails
4
  * Plugin URI: http://wordpress.shaldybina.com/plugins/related-posts-thumbnails/
5
  * Description: Showing related posts thumbnails under the post.
6
+ * Version: 1.5.2
7
  * Author: Maria Shaldybina
8
  * Author URI: http://shaldybina.com/
9
  */
48
  var $post_types = array( 'post' );
49
  var $custom_taxonomies = array();
50
 
51
+ protected $wp_kses_rp_args = array(
52
+
53
+ 'h1' => array(),
54
+ 'h2' => array(),
55
+ 'h3' => array(),
56
+ 'h4' => array(),
57
+ 'h5' => array(),
58
+ 'h6' => array(),
59
+ 'strong' => array(),
60
+ );
61
+
62
  function __construct() {
63
  // initialization
64
  load_plugin_textdomain( 'related-posts-thumbnails', false, basename( dirname( __FILE__ ) ) . '/locale' );
511
  }
512
 
513
  if( isset( $_POST['relpoststh_top_text'] ) ) {
514
+ update_option( 'relpoststh_top_text', wp_kses( $_POST['relpoststh_top_text'], $this->wp_kses_rp_args ) );
515
  }
516
 
517