Version Description
Download this release
Release Info
Developer | freediver |
Plugin | SEO Smart Links |
Version | 1.8.2 |
Comparing to | |
See all releases |
Code changes from version 1.8.1 to 1.8.2
- i/help.png +0 -0
- i/home.png +0 -0
- i/idea.png +0 -0
- i/more.png +0 -0
- i/p1.png +0 -0
- i/rate.png +0 -0
- readme.txt +3 -0
- seo-links.php +8 -6
i/help.png
DELETED
Binary file
|
i/home.png
DELETED
Binary file
|
i/idea.png
DELETED
Binary file
|
i/more.png
DELETED
Binary file
|
i/p1.png
DELETED
Binary file
|
i/rate.png
DELETED
Binary file
|
readme.txt
CHANGED
@@ -19,6 +19,9 @@ Everything happens completely transparent, and you can edit the options from the
|
|
19 |
|
20 |
Change log:
|
21 |
|
|
|
|
|
|
|
22 |
v1.8.0
|
23 |
- Added support for non-english characters (Unicode)
|
24 |
- Added support for keyword synonyms (in keywords section of the settings screen)
|
19 |
|
20 |
Change log:
|
21 |
|
22 |
+
v1.8.2
|
23 |
+
- Fixed problem with linking to the same post
|
24 |
+
|
25 |
v1.8.0
|
26 |
- Added support for non-english characters (Unicode)
|
27 |
- Added support for keyword synonyms (in keywords section of the settings screen)
|
seo-links.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
/*
|
4 |
Plugin Name: SEO Smart Links
|
5 |
-
Version: 1.8.
|
6 |
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/seo-smart-links
|
7 |
Author: Vladimir Prelovac
|
8 |
Author URI: http://www.prelovac.com/vladimir
|
@@ -63,9 +63,9 @@ function SEOLinks_process_text($text, $mode)
|
|
63 |
return $text;
|
64 |
|
65 |
if (($post->post_type=='page' && !$options['pageself']) || ($post->post_type=='post' && !$options['postself']))
|
66 |
-
$
|
67 |
else
|
68 |
-
$
|
69 |
|
70 |
}
|
71 |
|
@@ -76,8 +76,8 @@ function SEOLinks_process_text($text, $mode)
|
|
76 |
|
77 |
|
78 |
|
79 |
-
$arrignore=$this->explode_trim(",", strtolower($options['ignore']
|
80 |
-
|
81 |
|
82 |
$text = " $text ";
|
83 |
|
@@ -146,8 +146,10 @@ function SEOLinks_process_text($text, $mode)
|
|
146 |
{
|
147 |
|
148 |
if ((($options['lposts'] && $postitem->post_type=='post') || ($options['lpages'] && $postitem->post_type=='page')) &&
|
149 |
-
(!$maxlinks || ($links < $maxlinks)) && (!in_array( strtolower($postitem->post_title), $arrignore)) && strstr($text, $postitem->post_title) )
|
150 |
{
|
|
|
|
|
151 |
$name = preg_quote($postitem->post_title, '/');
|
152 |
|
153 |
$regexp="/(?!(?:[^<]+>|[^>]+<\/a>))\b($name)\b/imsU";
|
2 |
|
3 |
/*
|
4 |
Plugin Name: SEO Smart Links
|
5 |
+
Version: 1.8.2
|
6 |
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/seo-smart-links
|
7 |
Author: Vladimir Prelovac
|
8 |
Author URI: http://www.prelovac.com/vladimir
|
63 |
return $text;
|
64 |
|
65 |
if (($post->post_type=='page' && !$options['pageself']) || ($post->post_type=='post' && !$options['postself']))
|
66 |
+
$thistitle=strtolower($post->post_title);
|
67 |
else
|
68 |
+
$thistitle='';
|
69 |
|
70 |
}
|
71 |
|
76 |
|
77 |
|
78 |
|
79 |
+
$arrignore=$this->explode_trim(",", strtolower($options['ignore']));
|
80 |
+
|
81 |
|
82 |
$text = " $text ";
|
83 |
|
146 |
{
|
147 |
|
148 |
if ((($options['lposts'] && $postitem->post_type=='post') || ($options['lpages'] && $postitem->post_type=='page')) &&
|
149 |
+
(!$maxlinks || ($links < $maxlinks)) && strtolower($postitem->post_title)!=$thistitle && (!in_array( strtolower($postitem->post_title), $arrignore)) && strstr($text, $postitem->post_title) )
|
150 |
{
|
151 |
+
|
152 |
+
|
153 |
$name = preg_quote($postitem->post_title, '/');
|
154 |
|
155 |
$regexp="/(?!(?:[^<]+>|[^>]+<\/a>))\b($name)\b/imsU";
|