Version Description
Download this release
Release Info
Developer | freediver |
Plugin | SEO Smart Links |
Version | 2.7.1 |
Comparing to | |
See all releases |
Code changes from version 2.7 to 2.7.1
- readme.txt +1 -1
- seo-links.php +6 -3
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: freediver
|
|
3 |
Donate link: https://www.networkforgood.org/donation/MakeDonation.aspx?ORGID2=520781390
|
4 |
Tags: Post, posts, comments, links, seo, google, automatic, affiliate
|
5 |
Requires at least: 2.3
|
6 |
-
Tested up to: 3.
|
7 |
Stable tag: trunk
|
8 |
|
9 |
SEO Smart Links provides automatic SEO benefits for your site in addition to custom keyword lists, nofollow and much more.
|
3 |
Donate link: https://www.networkforgood.org/donation/MakeDonation.aspx?ORGID2=520781390
|
4 |
Tags: Post, posts, comments, links, seo, google, automatic, affiliate
|
5 |
Requires at least: 2.3
|
6 |
+
Tested up to: 3.3
|
7 |
Stable tag: trunk
|
8 |
|
9 |
SEO Smart Links provides automatic SEO benefits for your site in addition to custom keyword lists, nofollow and much more.
|
seo-links.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
/*
|
4 |
Plugin Name: SEO Smart Links
|
5 |
-
Version: 2.7
|
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
|
@@ -49,7 +49,7 @@ class SEOLinks {
|
|
49 |
|
50 |
function admin_notice() {
|
51 |
|
52 |
-
echo '<div class="updated" style="text-align: center;"><p
|
53 |
|
54 |
}
|
55 |
|
@@ -111,7 +111,9 @@ function SEOLinks_process_text($text, $mode)
|
|
111 |
// $reg_post = $options['casesens'] ? '/(?!(?:[^<]+>|[^>]+<\/a>))($name)/msU' : '/(?!(?:[^<]+>|[^>]+<\/a>))($name)/imsU';
|
112 |
// $reg = $options['casesens'] ? '/(?!(?:[^<]+>|[^>]+<\/a>))\b($name)\b/msU' : '/(?!(?:[^<]+>|[^>]+<\/a>))\b($name)\b/imsU';
|
113 |
$reg_post = $options['casesens'] ? '/(?!(?:[^<\[]+[>\]]|[^>\]]+<\/a>))($name)/msU' : '/(?!(?:[^<\[]+[>\]]|[^>\]]+<\/a>))($name)/imsU';
|
114 |
-
|
|
|
|
|
115 |
$strpos_fnc = $options['casesens'] ? 'strpos' : 'stripos';
|
116 |
|
117 |
$text = " $text ";
|
@@ -174,6 +176,7 @@ function SEOLinks_process_text($text, $mode)
|
|
174 |
|
175 |
$replace="<a title=\"$1\" href=\"$url\">$1</a>";
|
176 |
$regexp=str_replace('$name', $name, $reg);
|
|
|
177 |
//$regexp="/(?!(?:[^<]+>|[^>]+<\/a>))(?<!\p{L})($name)(?!\p{L})/imsU";
|
178 |
$newtext = preg_replace($regexp, $replace, $text, $maxsingle);
|
179 |
if ($newtext!=$text) {
|
2 |
|
3 |
/*
|
4 |
Plugin Name: SEO Smart Links
|
5 |
+
Version: 2.7.1
|
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
|
49 |
|
50 |
function admin_notice() {
|
51 |
|
52 |
+
echo '<div class="updated" style="text-align: center;"><p>Get <a target="_blank" href="http://www.prelovac.com/products/seo-smart-links">SEO Smart Links Premium</a> with more features, better optimization and email support. <a target="_blank" href="http://www.prelovac.com/products/seo-smart-links/#new">Click to open full list of new features</a></p><p style="text-align:right"><a href="options-general.php?page=seo-links.php¬ice=1">hide</a></p></div>';
|
53 |
|
54 |
}
|
55 |
|
111 |
// $reg_post = $options['casesens'] ? '/(?!(?:[^<]+>|[^>]+<\/a>))($name)/msU' : '/(?!(?:[^<]+>|[^>]+<\/a>))($name)/imsU';
|
112 |
// $reg = $options['casesens'] ? '/(?!(?:[^<]+>|[^>]+<\/a>))\b($name)\b/msU' : '/(?!(?:[^<]+>|[^>]+<\/a>))\b($name)\b/imsU';
|
113 |
$reg_post = $options['casesens'] ? '/(?!(?:[^<\[]+[>\]]|[^>\]]+<\/a>))($name)/msU' : '/(?!(?:[^<\[]+[>\]]|[^>\]]+<\/a>))($name)/imsU';
|
114 |
+
//$reg = $options['casesens'] ? '/(?!(?:[^<\[]+[>\]]|[^>\]]+<\/a>))\b($name)\b/msU' : '/(?!(?:[^<\[]+[>\]]|[^>\]]+<\/a>))\b($name)\b/imsU';
|
115 |
+
$reg = $options['casesens'] ? '/\b($name)\b(?!(?:(?!<\/?[ha].*?>).)*<\/[ha].*?>)(?![^<>]*>)/msUu' : '/(?<!\pL)\b($name)\b(?!\pL)(?!(?:(?!<\/?[ha].*?>).)*<\/[ha].*?>)(?![^<>]*>)/iumsU';
|
116 |
+
|
117 |
$strpos_fnc = $options['casesens'] ? 'strpos' : 'stripos';
|
118 |
|
119 |
$text = " $text ";
|
176 |
|
177 |
$replace="<a title=\"$1\" href=\"$url\">$1</a>";
|
178 |
$regexp=str_replace('$name', $name, $reg);
|
179 |
+
echo $name.'<br>';
|
180 |
//$regexp="/(?!(?:[^<]+>|[^>]+<\/a>))(?<!\p{L})($name)(?!\p{L})/imsU";
|
181 |
$newtext = preg_replace($regexp, $replace, $text, $maxsingle);
|
182 |
if ($newtext!=$text) {
|