Version Description
- Fixed deprecated split() function
- Fixed deprecated $wp_version
Download this release
Release Info
Developer | freelancephp |
Plugin | WP External Links (nofollow new tab seo) |
Version | 1.61 |
Comparing to | |
See all releases |
Code changes from version 1.60 to 1.61
- includes/class-wp-external-links.php +1 -1
- readme.txt +6 -2
- wp-external-links.php +8 -7
includes/class-wp-external-links.php
CHANGED
@@ -595,7 +595,7 @@ final class WP_External_Links {
|
|
595 |
if ( empty( $old_value ) )
|
596 |
$old_value = '';
|
597 |
|
598 |
-
$split =
|
599 |
|
600 |
if ( in_array( $value, $split ) ) {
|
601 |
$value = $old_value;
|
595 |
if ( empty( $old_value ) )
|
596 |
$old_value = '';
|
597 |
|
598 |
+
$split = preg_split( ' ', strtolower( $old_value ) );
|
599 |
|
600 |
if ( in_array( $value, $split ) ) {
|
601 |
$value = $old_value;
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== WP External Links (nofollow new window seo) ===
|
2 |
Contributors: freelancephp
|
3 |
Tags: links, external, icon, target, _blank, _new, _none, rel, nofollow, new window, new tab, javascript, xhtml, seo
|
4 |
-
Requires at least: 3.
|
5 |
Tested up to: 4.1.1
|
6 |
-
Stable tag: 1.
|
7 |
|
8 |
Open external links in a new window or tab, adding "nofollow", set link icon, styling, SEO friendly options and more. Easy install and go.
|
9 |
|
@@ -192,6 +192,10 @@ See [FAQ](https://wordpress.org/plugins/wp-external-links/faq/) for more possibi
|
|
192 |
|
193 |
== Changelog ==
|
194 |
|
|
|
|
|
|
|
|
|
195 |
= 1.60 =
|
196 |
* Added option to replace "follow" values of external links with "nofollow"
|
197 |
* Updated FAQ with custom solutions
|
1 |
=== WP External Links (nofollow new window seo) ===
|
2 |
Contributors: freelancephp
|
3 |
Tags: links, external, icon, target, _blank, _new, _none, rel, nofollow, new window, new tab, javascript, xhtml, seo
|
4 |
+
Requires at least: 3.6.0
|
5 |
Tested up to: 4.1.1
|
6 |
+
Stable tag: 1.61
|
7 |
|
8 |
Open external links in a new window or tab, adding "nofollow", set link icon, styling, SEO friendly options and more. Easy install and go.
|
9 |
|
192 |
|
193 |
== Changelog ==
|
194 |
|
195 |
+
= 1.61 =
|
196 |
+
* Fixed deprecated split() function
|
197 |
+
* Fixed deprecated $wp_version
|
198 |
+
|
199 |
= 1.60 =
|
200 |
* Added option to replace "follow" values of external links with "nofollow"
|
201 |
* Updated FAQ with custom solutions
|
wp-external-links.php
CHANGED
@@ -4,23 +4,26 @@ Plugin Name: WP External Links
|
|
4 |
Plugin URI: http://www.freelancephp.net/wp-external-links-plugin
|
5 |
Description: Open external links in a new window/tab, add "external" / "nofollow" to rel-attribute, set icon, XHTML strict, SEO friendly...
|
6 |
Author: Victor Villaverde Laan
|
7 |
-
Version: 1.
|
8 |
Author URI: http://www.freelancephp.net
|
9 |
License: Dual licensed under the MIT and GPL licenses
|
10 |
*/
|
11 |
|
12 |
// constants
|
13 |
if (!defined('WP_EXTERNAL_LINKS_FILE')) { define('WP_EXTERNAL_LINKS_FILE', __FILE__); }
|
14 |
-
if (!defined('WP_EXTERNAL_LINKS_VERSION')) { define('WP_EXTERNAL_LINKS_VERSION', '1.
|
15 |
if (!defined('WP_EXTERNAL_LINKS_KEY')) { define('WP_EXTERNAL_LINKS_KEY', 'wp_external_links'); }
|
16 |
if (!defined('WP_EXTERNAL_LINKS_DOMAIN')) { define('WP_EXTERNAL_LINKS_DOMAIN', 'wp-external-links'); }
|
17 |
if (!defined('WP_EXTERNAL_LINKS_OPTIONS_NAME')) { define('WP_EXTERNAL_LINKS_OPTIONS_NAME', 'WP_External_Links_options'); }
|
18 |
if (!defined('WP_EXTERNAL_LINKS_ADMIN_PAGE')) { define('WP_EXTERNAL_LINKS_ADMIN_PAGE', 'wp-external-links-settings'); }
|
19 |
|
|
|
|
|
|
|
|
|
|
|
20 |
// check plugin compatibility
|
21 |
-
if (
|
22 |
-
AND version_compare(preg_replace('/-.*$/', '', $wp_version), '3.4', '>=')
|
23 |
-
AND version_compare(phpversion(), '5.2.4', '>=')) {
|
24 |
|
25 |
// include classes
|
26 |
require_once('includes/wp-plugin-dev-classes/class-wp-meta-box-page.php');
|
@@ -54,5 +57,3 @@ if (isset($wp_version)
|
|
54 |
endif;
|
55 |
|
56 |
}
|
57 |
-
|
58 |
-
/* ommit PHP closing tag, to prevent unwanted whitespace at the end of the parts generated by the included files */
|
4 |
Plugin URI: http://www.freelancephp.net/wp-external-links-plugin
|
5 |
Description: Open external links in a new window/tab, add "external" / "nofollow" to rel-attribute, set icon, XHTML strict, SEO friendly...
|
6 |
Author: Victor Villaverde Laan
|
7 |
+
Version: 1.61
|
8 |
Author URI: http://www.freelancephp.net
|
9 |
License: Dual licensed under the MIT and GPL licenses
|
10 |
*/
|
11 |
|
12 |
// constants
|
13 |
if (!defined('WP_EXTERNAL_LINKS_FILE')) { define('WP_EXTERNAL_LINKS_FILE', __FILE__); }
|
14 |
+
if (!defined('WP_EXTERNAL_LINKS_VERSION')) { define('WP_EXTERNAL_LINKS_VERSION', '1.61'); }
|
15 |
if (!defined('WP_EXTERNAL_LINKS_KEY')) { define('WP_EXTERNAL_LINKS_KEY', 'wp_external_links'); }
|
16 |
if (!defined('WP_EXTERNAL_LINKS_DOMAIN')) { define('WP_EXTERNAL_LINKS_DOMAIN', 'wp-external-links'); }
|
17 |
if (!defined('WP_EXTERNAL_LINKS_OPTIONS_NAME')) { define('WP_EXTERNAL_LINKS_OPTIONS_NAME', 'WP_External_Links_options'); }
|
18 |
if (!defined('WP_EXTERNAL_LINKS_ADMIN_PAGE')) { define('WP_EXTERNAL_LINKS_ADMIN_PAGE', 'wp-external-links-settings'); }
|
19 |
|
20 |
+
// wp_version var was used by older WP versions
|
21 |
+
if (!isset($wp_version)) {
|
22 |
+
$wp_version = get_bloginfo('version');
|
23 |
+
}
|
24 |
+
|
25 |
// check plugin compatibility
|
26 |
+
if (version_compare($wp_version, '3.6', '>=') && version_compare(phpversion(), '5.2.4', '>=')) {
|
|
|
|
|
27 |
|
28 |
// include classes
|
29 |
require_once('includes/wp-plugin-dev-classes/class-wp-meta-box-page.php');
|
57 |
endif;
|
58 |
|
59 |
}
|
|
|
|