Version Description
Download this release
Release Info
| Developer | barrykooij |
| Plugin | |
| Version | 2.0.5 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.4 to 2.0.5
- classes/class-post-link-manager.php +2 -2
- classes/class-rp4wp.php +1 -1
- classes/hooks/class-hook-frontend-css.php +2 -2
- readme.txt +7 -3
- related-posts-for-wp.php +1 -1
classes/class-post-link-manager.php
CHANGED
|
@@ -392,7 +392,7 @@ class RP4WP_Post_Link_Manager {
|
|
| 392 |
if ( '' != $heading_text ) {
|
| 393 |
|
| 394 |
// Add heading text plus heading elements
|
| 395 |
-
$heading_text = '<h3>' . $heading_text . '</h3>' . PHP_EOL;
|
| 396 |
}
|
| 397 |
|
| 398 |
// Filter complete heading
|
|
@@ -458,4 +458,4 @@ class RP4WP_Post_Link_Manager {
|
|
| 458 |
|
| 459 |
}
|
| 460 |
|
| 461 |
-
}
|
| 392 |
if ( '' != $heading_text ) {
|
| 393 |
|
| 394 |
// Add heading text plus heading elements
|
| 395 |
+
$heading_text = '<h3>' . esc_html( $heading_text ) . '</h3>' . PHP_EOL;
|
| 396 |
}
|
| 397 |
|
| 398 |
// Filter complete heading
|
| 458 |
|
| 459 |
}
|
| 460 |
|
| 461 |
+
}
|
classes/class-rp4wp.php
CHANGED
|
@@ -8,7 +8,7 @@ class RP4WP {
|
|
| 8 |
|
| 9 |
private static $instance = null;
|
| 10 |
|
| 11 |
-
const VERSION = '2.0.
|
| 12 |
|
| 13 |
/**
|
| 14 |
* @var RP4WP_Settings
|
| 8 |
|
| 9 |
private static $instance = null;
|
| 10 |
|
| 11 |
+
const VERSION = '2.0.5';
|
| 12 |
|
| 13 |
/**
|
| 14 |
* @var RP4WP_Settings
|
classes/hooks/class-hook-frontend-css.php
CHANGED
|
@@ -11,8 +11,8 @@ class RP4WP_Hook_Frontend_Css extends RP4WP_Hook {
|
|
| 11 |
if ( is_single() ) {
|
| 12 |
$css = trim( RP4WP::get()->settings->get_option( 'css' ) );
|
| 13 |
if ( '' != $css ) {
|
| 14 |
-
echo "<style type='text/css'>" . $css . "</style>" . PHP_EOL;
|
| 15 |
}
|
| 16 |
}
|
| 17 |
}
|
| 18 |
-
}
|
| 11 |
if ( is_single() ) {
|
| 12 |
$css = trim( RP4WP::get()->settings->get_option( 'css' ) );
|
| 13 |
if ( '' != $css ) {
|
| 14 |
+
echo "<style type='text/css'>" . strip_tags( $css ) . "</style>" . PHP_EOL;
|
| 15 |
}
|
| 16 |
}
|
| 17 |
}
|
| 18 |
+
}
|
readme.txt
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
=== Related Posts for WordPress ===
|
| 2 |
-
Contributors: never5, barrykooij
|
| 3 |
Donate link: http://www.barrykooij.com/donate/
|
| 4 |
Tags: related posts for wordpress, related posts for wp, simple related posts, easy related posts, related posts, related post, related, relations, internal links, seo, bounce rate
|
| 5 |
Requires at least: 3.6
|
| 6 |
-
Tested up to: 5.7
|
| 7 |
-
Stable tag: 2.0.
|
| 8 |
License: GPLv3 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
|
|
@@ -118,6 +118,10 @@ There is one custom table created for the post cache, this table will however no
|
|
| 118 |
|
| 119 |
== Changelog ==
|
| 120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
= 2.0.4: March 15, 2021 =
|
| 122 |
* Tweak: Fixed an XSS vulnerability with WPML language GET attribute.
|
| 123 |
|
| 1 |
=== Related Posts for WordPress ===
|
| 2 |
+
Contributors: never5, barrykooij
|
| 3 |
Donate link: http://www.barrykooij.com/donate/
|
| 4 |
Tags: related posts for wordpress, related posts for wp, simple related posts, easy related posts, related posts, related post, related, relations, internal links, seo, bounce rate
|
| 5 |
Requires at least: 3.6
|
| 6 |
+
Tested up to: 5.7.2
|
| 7 |
+
Stable tag: 2.0.5
|
| 8 |
License: GPLv3 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
|
| 118 |
|
| 119 |
== Changelog ==
|
| 120 |
|
| 121 |
+
= 2.0.5: July 6, 2021 =
|
| 122 |
+
* Tweak: Fixed an XSS vulnerability in heading text option.
|
| 123 |
+
* Tweak: Fixed an XSS vulnerability in custom CSS option.
|
| 124 |
+
|
| 125 |
= 2.0.4: March 15, 2021 =
|
| 126 |
* Tweak: Fixed an XSS vulnerability with WPML language GET attribute.
|
| 127 |
|
related-posts-for-wp.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Plugin Name: Related Posts for WordPress
|
| 4 |
Plugin URI: http://www.relatedpostsforwp.com/
|
| 5 |
Description: Related Posts for WordPress, the best way to display related posts in WordPress.
|
| 6 |
-
Version: 2.0.
|
| 7 |
Author: Never5
|
| 8 |
Author URI: http://www.never5.com/
|
| 9 |
License: GPL v3
|
| 3 |
Plugin Name: Related Posts for WordPress
|
| 4 |
Plugin URI: http://www.relatedpostsforwp.com/
|
| 5 |
Description: Related Posts for WordPress, the best way to display related posts in WordPress.
|
| 6 |
+
Version: 2.0.5
|
| 7 |
Author: Never5
|
| 8 |
Author URI: http://www.never5.com/
|
| 9 |
License: GPL v3
|
