Version Description
Download this release
Release Info
Developer | barrykooij |
Plugin | Related Posts for WordPress |
Version | 1.7.4 |
Comparing to | |
See all releases |
Code changes from version 1.7.3 to 1.7.4
- classes/class-post-link-manager.php +1 -1
- classes/class-related-word-manager.php +3 -4
- classes/class-rp4wp.php +1 -1
- readme.txt +15 -3
- related-posts-for-wp.php +1 -1
classes/class-post-link-manager.php
CHANGED
@@ -370,7 +370,7 @@ class RP4WP_Post_Link_Manager {
|
|
370 |
|
371 |
$excerpt_length = RP4WP::get()->settings->get_option( 'excerpt_length' );
|
372 |
if ( $excerpt_length > 0 ) {
|
373 |
-
$excerpt = ( ( '' != $rp4wp_post->post_excerpt ) ? $rp4wp_post->post_excerpt : wp_trim_words( $rp4wp_post->post_content, $excerpt_length ) );
|
374 |
$content .= "<p>" . $excerpt . "</p>";
|
375 |
}
|
376 |
|
370 |
|
371 |
$excerpt_length = RP4WP::get()->settings->get_option( 'excerpt_length' );
|
372 |
if ( $excerpt_length > 0 ) {
|
373 |
+
$excerpt = strip_shortcodes( ( ( '' != $rp4wp_post->post_excerpt ) ? $rp4wp_post->post_excerpt : wp_trim_words( $rp4wp_post->post_content, $excerpt_length ) ) );
|
374 |
$content .= "<p>" . $excerpt . "</p>";
|
375 |
}
|
376 |
|
classes/class-related-word-manager.php
CHANGED
@@ -163,13 +163,12 @@ class RP4WP_Related_Word_Manager {
|
|
163 |
// Remove everything but letters and numbers
|
164 |
// $content = preg_replace( '/[^a-z0-9]+/i', ' ', $content );
|
165 |
|
|
|
|
|
|
|
166 |
// Split string into words
|
167 |
$words = explode( ' ', $content );
|
168 |
|
169 |
-
foreach ( $words as $word_key => $word_val ) {
|
170 |
-
$words[$word_key] = iconv( "utf-8", "us-ascii//TRANSLIT", $word_val );
|
171 |
-
}
|
172 |
-
|
173 |
// Add the $linked_words
|
174 |
$words = array_merge( $words, $linked_words );
|
175 |
|
163 |
// Remove everything but letters and numbers
|
164 |
// $content = preg_replace( '/[^a-z0-9]+/i', ' ', $content );
|
165 |
|
166 |
+
// UTF8 fix content
|
167 |
+
$content = iconv( "utf-8", "us-ascii//TRANSLIT", utf8_encode( $content ) );
|
168 |
+
|
169 |
// Split string into words
|
170 |
$words = explode( ' ', $content );
|
171 |
|
|
|
|
|
|
|
|
|
172 |
// Add the $linked_words
|
173 |
$words = array_merge( $words, $linked_words );
|
174 |
|
classes/class-rp4wp.php
CHANGED
@@ -8,7 +8,7 @@ class RP4WP {
|
|
8 |
|
9 |
private static $instance = null;
|
10 |
|
11 |
-
const VERSION = '1.7.
|
12 |
|
13 |
/**
|
14 |
* @var RP4WP_Settings
|
8 |
|
9 |
private static $instance = null;
|
10 |
|
11 |
+
const VERSION = '1.7.4';
|
12 |
|
13 |
/**
|
14 |
* @var RP4WP_Settings
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.relatedpostsforwp.com/
|
|
4 |
Tags: related posts for wordpress, related posts for wp, simple related posts, easy related posts, related posts, related, relations, internal links, seo, bounce rate
|
5 |
Requires at least: 3.6
|
6 |
Tested up to: 4.0
|
7 |
-
Stable tag: 1.7.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -24,6 +24,7 @@ Our installation wizard will do all the hard work for you, simply activate the p
|
|
24 |
> - Custom Post Type Support<br />
|
25 |
> - Related Post Themes<br />
|
26 |
> - Custom Taxonomy Support<br />
|
|
|
27 |
> - Priority Email Support<br />
|
28 |
>
|
29 |
> [More information](https://www.relatedpostsforwp.com/features/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=after-features-info-link) | [Purchase >>](https://www.relatedpostsforwp.com/checkout/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=after-features-purchase-link)
|
@@ -69,6 +70,7 @@ Related Posts for Wordpress has a widget allowing you to display related posts i
|
|
69 |
> - Custom Post Type Support<br />
|
70 |
> - Related Post Themes<br />
|
71 |
> - Custom Taxonomy Support<br />
|
|
|
72 |
> - Priority Email Support<br />
|
73 |
>
|
74 |
> [More information](https://www.relatedpostsforwp.com/features/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=faq-info-link) | [Purchase >>](https://www.relatedpostsforwp.com/checkout/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=faq-purchase-link)
|
@@ -95,7 +97,10 @@ Yes. To display your related posts via a shortcode use: [rp4wp]
|
|
95 |
= Is there a widget? =
|
96 |
Yes there is!
|
97 |
|
98 |
-
= Does Related Posts for WordPress
|
|
|
|
|
|
|
99 |
There is one custom table created for the post cache, this table will however not be used at the frontend of your website. Related Posts are fetched with normal WP_Query objects.
|
100 |
|
101 |
== Screenshots ==
|
@@ -107,8 +112,15 @@ There is one custom table created for the post cache, this table will however no
|
|
107 |
|
108 |
== Changelog ==
|
109 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
= 1.7.3: November 10, 2014 =
|
111 |
-
* Fixed multisite/network compatibility
|
112 |
|
113 |
= 1.7.2: October 27, 2014 =
|
114 |
* Fixed a bug where permission were checked to soon.
|
4 |
Tags: related posts for wordpress, related posts for wp, simple related posts, easy related posts, related posts, related, relations, internal links, seo, bounce rate
|
5 |
Requires at least: 3.6
|
6 |
Tested up to: 4.0
|
7 |
+
Stable tag: 1.7.4
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
24 |
> - Custom Post Type Support<br />
|
25 |
> - Related Post Themes<br />
|
26 |
> - Custom Taxonomy Support<br />
|
27 |
+
> - WordPress Network / Multisite support<br />
|
28 |
> - Priority Email Support<br />
|
29 |
>
|
30 |
> [More information](https://www.relatedpostsforwp.com/features/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=after-features-info-link) | [Purchase >>](https://www.relatedpostsforwp.com/checkout/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=after-features-purchase-link)
|
70 |
> - Custom Post Type Support<br />
|
71 |
> - Related Post Themes<br />
|
72 |
> - Custom Taxonomy Support<br />
|
73 |
+
> - WordPress Network / Multisite support<br />
|
74 |
> - Priority Email Support<br />
|
75 |
>
|
76 |
> [More information](https://www.relatedpostsforwp.com/features/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=faq-info-link) | [Purchase >>](https://www.relatedpostsforwp.com/checkout/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=faq-purchase-link)
|
97 |
= Is there a widget? =
|
98 |
Yes there is!
|
99 |
|
100 |
+
= Does Related Posts for WordPress supports WordPress Network / Multisite websites? =
|
101 |
+
No, the free version does not. [The premium version however does, get it here](https://www.relatedpostsforwp.com/checkout/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=faq-item).
|
102 |
+
|
103 |
+
= Does Related Posts for WordPress uses it's own database table? =
|
104 |
There is one custom table created for the post cache, this table will however not be used at the frontend of your website. Related Posts are fetched with normal WP_Query objects.
|
105 |
|
106 |
== Screenshots ==
|
112 |
|
113 |
== Changelog ==
|
114 |
|
115 |
+
= Trunk: November xx, 2014 =
|
116 |
+
* Fixed a hardcoded database table bug.
|
117 |
+
|
118 |
+
= 1.7.4: November 12, 2014 =
|
119 |
+
* Fixed an UTF-8 - iconv bug.
|
120 |
+
* Remove shortcodes from the related posts excerpt.
|
121 |
+
|
122 |
= 1.7.3: November 10, 2014 =
|
123 |
+
* Fixed multisite/network compatibility.
|
124 |
|
125 |
= 1.7.2: October 27, 2014 =
|
126 |
* Fixed a bug where permission were checked to soon.
|
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: 1.7.
|
7 |
Author: Barry Kooij
|
8 |
Author URI: http://www.barrykooij.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: 1.7.4
|
7 |
Author: Barry Kooij
|
8 |
Author URI: http://www.barrykooij.com/
|
9 |
License: GPL v3
|