Version Description
Download this release
Release Info
Developer | freediver |
Plugin | SEO Smart Links |
Version | 2.7.4 |
Comparing to | |
See all releases |
Code changes from version 2.7.3 to 2.7.4
- seo-links.php +2 -7
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>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,11 +111,7 @@ 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 |
-
//$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 |
$reg = $options['casesens'] ? '/(?!(?:[^<\[]+[>\]]|[^>\]]+<\/a>))\b($name)\b/msU' : '/(?!(?:[^<\[]+[>\]]|[^>\]]+<\/a>))\b($name)\b/imsU';
|
117 |
-
|
118 |
-
|
119 |
$strpos_fnc = $options['casesens'] ? 'strpos' : 'stripos';
|
120 |
|
121 |
$text = " $text ";
|
@@ -178,7 +174,6 @@ function SEOLinks_process_text($text, $mode)
|
|
178 |
|
179 |
$replace="<a title=\"$1\" href=\"$url\">$1</a>";
|
180 |
$regexp=str_replace('$name', $name, $reg);
|
181 |
-
|
182 |
//$regexp="/(?!(?:[^<]+>|[^>]+<\/a>))(?<!\p{L})($name)(?!\p{L})/imsU";
|
183 |
$newtext = preg_replace($regexp, $replace, $text, $maxsingle);
|
184 |
if ($newtext!=$text) {
|
2 |
|
3 |
/*
|
4 |
Plugin Name: SEO Smart Links
|
5 |
+
Version: 2.7.4
|
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 style="font-size:13px">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 |
$strpos_fnc = $options['casesens'] ? 'strpos' : 'stripos';
|
116 |
|
117 |
$text = " $text ";
|
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) {
|