Version Description
Download this release
Release Info
Developer | mitchoyoshitaka |
Plugin | Yet Another Related Posts Plugin (YARPP) |
Version | 2.1.3 |
Comparing to | |
See all releases |
Code changes from version 2.1.2 to 2.1.3
- includes.php +4 -4
- keywords.php +5 -4
- magic.php +1 -1
- readme.txt +5 -1
- yarpp.php +1 -1
includes.php
CHANGED
@@ -84,8 +84,8 @@ function yarpp_activate() {
|
|
84 |
return 0;
|
85 |
}
|
86 |
}
|
87 |
-
add_option('yarpp_version','2.
|
88 |
-
update_option('yarpp_version','2.
|
89 |
return 1;
|
90 |
}
|
91 |
|
@@ -138,8 +138,8 @@ function yarpp_upgrade_check($inuse = false) {
|
|
138 |
$wpdb->query("ALTER TABLE $wpdb->posts ADD FULLTEXT `yarpp_content` ( `post_content`)"); update_option('yarpp_version','2.03');
|
139 |
}
|
140 |
|
141 |
-
if (get_option('yarpp_version') < 2.
|
142 |
-
update_option('yarpp_version','2.
|
143 |
}
|
144 |
|
145 |
// just in case, try to add the index one more time.
|
84 |
return 0;
|
85 |
}
|
86 |
}
|
87 |
+
add_option('yarpp_version','2.13');
|
88 |
+
update_option('yarpp_version','2.13');
|
89 |
return 1;
|
90 |
}
|
91 |
|
138 |
$wpdb->query("ALTER TABLE $wpdb->posts ADD FULLTEXT `yarpp_content` ( `post_content`)"); update_option('yarpp_version','2.03');
|
139 |
}
|
140 |
|
141 |
+
if (get_option('yarpp_version') < 2.13) {
|
142 |
+
update_option('yarpp_version','2.13');
|
143 |
}
|
144 |
|
145 |
// just in case, try to add the index one more time.
|
keywords.php
CHANGED
@@ -5,10 +5,11 @@ $overusedwords = array( '', 'a', 'an', 'the', 'and', 'of', 'i', 'to', 'is', 'in'
|
|
5 |
function yarpp_extract_keywords($source,$num_to_ret = 20) {
|
6 |
global $post, $overusedwords;
|
7 |
|
8 |
-
if (function_exists('mb_split'))
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
12 |
|
13 |
// Build an array of the unique words and number of times they occur.
|
14 |
$a = array_count_values($wordlist);
|
5 |
function yarpp_extract_keywords($source,$num_to_ret = 20) {
|
6 |
global $post, $overusedwords;
|
7 |
|
8 |
+
if (function_exists('mb_split')) {
|
9 |
+
mb_regex_encoding(get_option('blog_charset'));
|
10 |
+
$wordlist = mb_split('\s*\W+\s*', mb_strtolower($source));
|
11 |
+
} else
|
12 |
+
$wordlist = split('\s*\W+\s*', strtolower($source));
|
13 |
|
14 |
// Build an array of the unique words and number of times they occur.
|
15 |
$a = array_count_values($wordlist);
|
magic.php
CHANGED
@@ -70,7 +70,7 @@ function yarpp_sql($type,$args,$giveresults = true,$domain='website') {
|
|
70 |
// if cross_relate is set, override the type argument and make sure both matches are accepted in the sql query
|
71 |
if ($cross_relate) $type = array('post','page');
|
72 |
|
73 |
-
yarpp_cache_keywords();
|
74 |
|
75 |
// Fetch keywords
|
76 |
$body_terms = post_body_keywords();
|
70 |
// if cross_relate is set, override the type argument and make sure both matches are accepted in the sql query
|
71 |
if ($cross_relate) $type = array('post','page');
|
72 |
|
73 |
+
//yarpp_cache_keywords();
|
74 |
|
75 |
// Fetch keywords
|
76 |
$body_terms = post_body_keywords();
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=mitcho%4
|
|
7 |
Tags: related, posts, post, pages, page, RSS, feed, feeds
|
8 |
Requires at least: 2.3
|
9 |
Tested up to: 2.7
|
10 |
-
Stable tag: 2.1.
|
11 |
|
12 |
Returns a list of the related entries based on a unique algorithm using titles, post bodies, tags, and categories. Now with RSS feed support!
|
13 |
|
@@ -209,6 +209,10 @@ If you are a bilingual speaker of English and another language and an avid user
|
|
209 |
* Adding a debug mode--just try adding `&yarpp_debug=1` to your URL's and look at the HTML source.
|
210 |
* 2.1.2
|
211 |
* Bugfix: MyISAM override handling bug
|
|
|
|
|
|
|
|
|
212 |
|
213 |
== Future versions ==
|
214 |
|
7 |
Tags: related, posts, post, pages, page, RSS, feed, feeds
|
8 |
Requires at least: 2.3
|
9 |
Tested up to: 2.7
|
10 |
+
Stable tag: 2.1.3
|
11 |
|
12 |
Returns a list of the related entries based on a unique algorithm using titles, post bodies, tags, and categories. Now with RSS feed support!
|
13 |
|
209 |
* Adding a debug mode--just try adding `&yarpp_debug=1` to your URL's and look at the HTML source.
|
210 |
* 2.1.2
|
211 |
* Bugfix: MyISAM override handling bug
|
212 |
+
* 2.1.3
|
213 |
+
* Bugfix: Turned off [the experimental caching](http://wordpress.org/support/topic/216194#post-894440) which shouldn't have been on in this release...
|
214 |
+
* Bugfix: an issue with the [keywords algorithm for non-ASCII characters](http://wordpress.org/support/topic/216078)
|
215 |
+
* Bugfix: [Option sumbmission took you to PayPal](http://wordpress.org/support/topic/214090)
|
216 |
|
217 |
== Future versions ==
|
218 |
|
yarpp.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Yet Another Related Posts Plugin
|
4 |
Plugin URI: http://mitcho.com/code/yarpp/
|
5 |
Description: Returns a list of the related entries based on a unique algorithm using titles, post bodies, tags, and categories. Now with RSS feed support!
|
6 |
-
Version: 2.1.
|
7 |
Author: mitcho (Michael Yoshitaka Erlewine)
|
8 |
*/
|
9 |
|
3 |
Plugin Name: Yet Another Related Posts Plugin
|
4 |
Plugin URI: http://mitcho.com/code/yarpp/
|
5 |
Description: Returns a list of the related entries based on a unique algorithm using titles, post bodies, tags, and categories. Now with RSS feed support!
|
6 |
+
Version: 2.1.3
|
7 |
Author: mitcho (Michael Yoshitaka Erlewine)
|
8 |
*/
|
9 |
|