Nofollow for external link - Version 1.2.1

Version Description

  • Fix issue with target="self", target="_top", target="parent"
Download this release

Release Info

Developer cybernetikz
Plugin Icon 128x128 Nofollow for external link
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2.0 to 1.2.1

Files changed (3) hide show
  1. images/banner-3.jpg +0 -0
  2. nofollow-external-link.php +2 -2
  3. readme.txt +12 -9
images/banner-3.jpg CHANGED
Binary file
nofollow-external-link.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Nofollow for external link
4
  Plugin URI: http://www.cybernetikz.com
5
  Description: Just simple, if you activate this plugins, <code>rel=&quot;nofollow&quot;</code> and <code>target=&quot;_blank&quot;</code> will be added automatically, for all the external links of your website <strong>posts</strong> or <strong>pages</strong>. Also you can <strong>exclude domains</strong>, not to add <code>rel=&quot;nofollow&quot;</code> for the selected external links.
6
- Version: 1.2.0
7
  Author: CyberNetikz
8
  Author URI: http://www.cybernetikz.com
9
  License: GPL2
@@ -161,7 +161,7 @@ function cn_nf_url_parse( $content ) {
161
  $noFollow = '';
162
 
163
  // add target=_blank to url
164
- $pattern = '/target\s*=\s*"\s*_blank\s*"/';
165
  preg_match($pattern, $tag2, $match, PREG_OFFSET_CAPTURE);
166
  if( count($match) < 1 )
167
  $noFollow .= ' target="_blank"';
3
  Plugin Name: Nofollow for external link
4
  Plugin URI: http://www.cybernetikz.com
5
  Description: Just simple, if you activate this plugins, <code>rel=&quot;nofollow&quot;</code> and <code>target=&quot;_blank&quot;</code> will be added automatically, for all the external links of your website <strong>posts</strong> or <strong>pages</strong>. Also you can <strong>exclude domains</strong>, not to add <code>rel=&quot;nofollow&quot;</code> for the selected external links.
6
+ Version: 1.2.1
7
  Author: CyberNetikz
8
  Author URI: http://www.cybernetikz.com
9
  License: GPL2
161
  $noFollow = '';
162
 
163
  // add target=_blank to url
164
+ $pattern = '/target\s*=\s*"\s*_(blank|parent|self|top)\s*"/';
165
  preg_match($pattern, $tag2, $match, PREG_OFFSET_CAPTURE);
166
  if( count($match) < 1 )
167
  $noFollow .= ' target="_blank"';
readme.txt CHANGED
@@ -4,19 +4,19 @@ Contributors: cybernetikz
4
  Donate link:
5
  Tags: nofollow,link,rel=nofollow,rel nofollow,seo,nofollow links,external link,external links,nofollow for external link,nofollow external link,nofollow external links
6
  Requires at least: 2.8.6
7
- Tested up to: 4.7
8
- Stable tag: 1.2.0
9
  License: GPL2
10
 
11
  Automatically insert `rel=nofollow` and `target=_blank` to all the external links into your website posts, pages or menus. Support exclude domain.
12
 
13
  == Description ==
14
 
15
- Just simple, if you use this plugin, `rel=nofollow` and `target=_blank` will be inserted automatically, for all the external links of your website posts, pages or theme menus. Also you can set <strong>exclude domains</strong>, not to add `rel=nofollow` for the selected external domain links.
16
 
17
- > <strong>Paid Support</strong> ( $30 / Hour, We accept PayPal )
18
- >
19
- > Email us if you need <strong>paid support</strong>, <a href="mailto:support@cybernetikz.com">support@cybernetikz.com</a>
20
 
21
  = Feature =
22
  * Add `rel=nofollow` for all the external links of your website posts / pages / menus.
@@ -29,7 +29,7 @@ Just simple, if you use this plugin, `rel=nofollow` and `target=_blank` will be
29
  * If you already added `rel=dofollow` or `rel=nofollow` to any post manually, this plugin will not add `rel=nofollow` for that post.
30
  * If you already added `target=_blank` to any post manually, this plugin will not add `target=_blank` for that post.
31
 
32
- You can visit our website <a href="http://www.cybernetikz.com/blog/wordpress-plugins-external-links-relnofollow/">cybernetikz.com</a>
33
 
34
  Wating for your valuable feedback/comments.
35
 
@@ -55,6 +55,9 @@ Ans: Yes it does.
55
 
56
  == Changelog ==
57
 
 
 
 
58
  = 1.2.0 =
59
  * Not add `rel=nofollow` and `target=_blank` for "/about-us" type internal links.
60
  * Add `rel=nofollow` and `target=_blank` for theme menus
@@ -81,8 +84,8 @@ Ans: Yes it does.
81
 
82
  == Support ==
83
 
84
- * [Plugin Homepage](http://www.cybernetikz.com)
85
- * [admin@cybernetikz.com](mailto:admin@cybernetikz.com)
86
 
87
  == Donations ==
88
 
4
  Donate link:
5
  Tags: nofollow,link,rel=nofollow,rel nofollow,seo,nofollow links,external link,external links,nofollow for external link,nofollow external link,nofollow external links
6
  Requires at least: 2.8.6
7
+ Tested up to: 4.7.5
8
+ Stable tag: 1.2.1
9
  License: GPL2
10
 
11
  Automatically insert `rel=nofollow` and `target=_blank` to all the external links into your website posts, pages or menus. Support exclude domain.
12
 
13
  == Description ==
14
 
15
+ Just simple, if you use this plugin, `rel=nofollow` and `target=_blank` will be inserted automatically, for all the external links of your website posts, pages or theme menus.
16
 
17
+ Also you can set <strong>exclude domains</strong>, not to add `rel=nofollow` for the selected external domain links.
18
+
19
+ > If you need <strong>support</strong>, <a href="http://www.cybernetikz.com/wordpress-magento-plugins/wordpress-plugins/nofollow-external-link/#disqus_thread">please leave your comment here</a>
20
 
21
  = Feature =
22
  * Add `rel=nofollow` for all the external links of your website posts / pages / menus.
29
  * If you already added `rel=dofollow` or `rel=nofollow` to any post manually, this plugin will not add `rel=nofollow` for that post.
30
  * If you already added `target=_blank` to any post manually, this plugin will not add `target=_blank` for that post.
31
 
32
+ You can visit our website <a href="http://www.cybernetikz.com/wordpress-magento-plugins/wordpress-plugins/nofollow-external-link/">cybernetikz.com</a>
33
 
34
  Wating for your valuable feedback/comments.
35
 
55
 
56
  == Changelog ==
57
 
58
+ = 1.2.1 =
59
+ * Fix issue with target="_self", target="_top", target="_parent"
60
+
61
  = 1.2.0 =
62
  * Not add `rel=nofollow` and `target=_blank` for "/about-us" type internal links.
63
  * Add `rel=nofollow` and `target=_blank` for theme menus
84
 
85
  == Support ==
86
 
87
+ * [Plugin Homepage](* http://www.cybernetikz.com/wordpress-magento-plugins/wordpress-plugins/nofollow-external-link/)
88
+
89
 
90
  == Donations ==
91