SEO Smart Links - Version 1.5.1

Version Description

Download this release

Release Info

Developer freediver
Plugin Icon 128x128 SEO Smart Links
Version 1.5.1
Comparing to
See all releases

Code changes from version 1.5 to 1.5.1

Files changed (1) hide show
  1. seo-links.php +15 -5
seo-links.php CHANGED
@@ -2,7 +2,7 @@
2
3
/*
4
Plugin Name: SEO Smart Links
5
- Version: 1.5
6
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/seo-smart-links
7
Author: Vladimir Prelovac
8
Author URI: http://www.prelovac.com
@@ -226,16 +226,26 @@ return trim( $text );
226
}
227
228
function SEOLinks_the_content_filter($text) {
229
$result=$this->SEOLinks_process_text($text, 0);
230
- $result = preg_replace('%<a(\s+.*?href=\S(?!' . get_bloginfo('wpurl') . '))%i', '<a target="_blank"\\1', $result); // credit to Kaf Oseo
231
- $result = preg_replace('%<a(\s+.*?href=\S(?!' . get_bloginfo('wpurl') . '))%i', '<a rel="nofollow"\\1', $result);
232
return $result;
233
}
234
235
function SEOLinks_comment_text_filter($text) {
236
$result = $this->SEOLinks_process_text($text, 1);
237
- $result = preg_replace('%<a(\s+.*?href=\S(?!' . get_bloginfo('wpurl') . '))%i', '<a target="_blank"\\1', $result); // credit to Kaf Oseo
238
- $result = preg_replace('%<a(\s+.*?href=\S(?!' . get_bloginfo('wpurl') . '))%i', '<a rel="nofollow"\\1', $result);
239
return $result;
240
}
241
2
3
/*
4
Plugin Name: SEO Smart Links
5
+ Version: 1.5.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
226
}
227
228
function SEOLinks_the_content_filter($text) {
229
+
230
$result=$this->SEOLinks_process_text($text, 0);
231
+
232
+ $options = $this->get_options();
233
+ if ($options['blanko'])
234
+ $result = preg_replace('%<a(\s+.*?href=\S(?!' . get_bloginfo('wpurl') . '))%i', '<a target="_blank"\\1', $result); // credit to Kaf Oseo
235
+ if ($options['nofolo'])
236
+ $result = preg_replace('%<a(\s+.*?href=\S(?!' . get_bloginfo('wpurl') . '))%i', '<a rel="nofollow"\\1', $result);
237
return $result;
238
}
239
240
function SEOLinks_comment_text_filter($text) {
241
$result = $this->SEOLinks_process_text($text, 1);
242
+
243
+ $options = $this->get_options();
244
+ if ($options['blanko'])
245
+ $result = preg_replace('%<a(\s+.*?href=\S(?!' . get_bloginfo('wpurl') . '))%i', '<a target="_blank"\\1', $result); // credit to Kaf Oseo
246
+
247
+ if ($options['nofolo'])
248
+ $result = preg_replace('%<a(\s+.*?href=\S(?!' . get_bloginfo('wpurl') . '))%i', '<a rel="nofollow"\\1', $result);
249
return $result;
250
}
251