Version Description
- General bug fixes. Fixed the issue with str_split. Solved heading issue which changed style code in heading tags.
Download this release
Release Info
| Developer | freediver |
| Plugin | |
| Version | 2.3.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.3 to 2.3.1
- readme.txt +4 -1
- seo-links.php +11 -3
readme.txt
CHANGED
|
@@ -25,7 +25,10 @@ Plugin by Vladimir Prelovac a <a href="http://www.prelovac.com/vladimir/services
|
|
| 25 |
|
| 26 |
== Changelog ==
|
| 27 |
|
| 28 |
-
= 2.3=
|
|
|
|
|
|
|
|
|
|
| 29 |
* Prevent linking inside heading tags (h1, h2..) (credits to <a href="http://www.munchweb.com">Chris Tew</a>)
|
| 30 |
|
| 31 |
= 2.2.2 =
|
| 25 |
|
| 26 |
== Changelog ==
|
| 27 |
|
| 28 |
+
= 2.3.1 =
|
| 29 |
+
* General bug fixes. Fixed the issue with str_split. Solved heading issue which changed style code in heading tags.
|
| 30 |
+
|
| 31 |
+
= 2.3 =
|
| 32 |
* Prevent linking inside heading tags (h1, h2..) (credits to <a href="http://www.munchweb.com">Chris Tew</a>)
|
| 33 |
|
| 34 |
= 2.2.2 =
|
seo-links.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
/*
|
| 4 |
Plugin Name: SEO Smart Links
|
| 5 |
-
Version: 2.3
|
| 6 |
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/seo-smart-links
|
| 7 |
Author: Vladimir Prelovac</a>
|
| 8 |
Author URI: http://www.prelovac.com/vladimir
|
|
@@ -246,6 +246,7 @@ function SEOLinks_process_text($text, $mode)
|
|
| 246 |
if ($options['excludeheading'] == "on") {
|
| 247 |
//Here insert special characters
|
| 248 |
$text = preg_replace('%(<h.*?>)(.*?)(</h.*?>)%sie', "'\\1'.removespecialchars('\\2').'\\3'", $text);
|
|
|
|
| 249 |
}
|
| 250 |
return trim( $text );
|
| 251 |
|
|
@@ -562,14 +563,21 @@ if ( class_exists('SEOLinks') ) :
|
|
| 562 |
endif;
|
| 563 |
|
| 564 |
function insertspecialchars($str) {
|
| 565 |
-
$strarr =
|
| 566 |
$str = implode("<!---->", $strarr);
|
| 567 |
return $str;
|
| 568 |
}
|
| 569 |
function removespecialchars($str) {
|
| 570 |
$strarr = explode("<!---->", $str);
|
| 571 |
$str = implode("", $strarr);
|
|
|
|
| 572 |
return $str;
|
| 573 |
}
|
| 574 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 575 |
?>
|
| 2 |
|
| 3 |
/*
|
| 4 |
Plugin Name: SEO Smart Links
|
| 5 |
+
Version: 2.3.1
|
| 6 |
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/seo-smart-links
|
| 7 |
Author: Vladimir Prelovac</a>
|
| 8 |
Author URI: http://www.prelovac.com/vladimir
|
| 246 |
if ($options['excludeheading'] == "on") {
|
| 247 |
//Here insert special characters
|
| 248 |
$text = preg_replace('%(<h.*?>)(.*?)(</h.*?>)%sie', "'\\1'.removespecialchars('\\2').'\\3'", $text);
|
| 249 |
+
$text = stripslashes($text);
|
| 250 |
}
|
| 251 |
return trim( $text );
|
| 252 |
|
| 563 |
endif;
|
| 564 |
|
| 565 |
function insertspecialchars($str) {
|
| 566 |
+
$strarr = str2arr($str);
|
| 567 |
$str = implode("<!---->", $strarr);
|
| 568 |
return $str;
|
| 569 |
}
|
| 570 |
function removespecialchars($str) {
|
| 571 |
$strarr = explode("<!---->", $str);
|
| 572 |
$str = implode("", $strarr);
|
| 573 |
+
$str = stripslashes($str);
|
| 574 |
return $str;
|
| 575 |
}
|
| 576 |
+
function str2arr($str) {
|
| 577 |
+
$chararray = array();
|
| 578 |
+
for($i=0; $i < strlen($str); $i++){
|
| 579 |
+
array_push($chararray,$str{$i});
|
| 580 |
+
}
|
| 581 |
+
return $chararray;
|
| 582 |
+
}
|
| 583 |
?>
|
