Version Description
- Fix: Conflict with Auto Thickbox plugin that would result in text widgets still being filtered even though option was turned off
- Fix: Ensure this plugin filter is executed way back in the change to prevent other plugins/themes from reversing our changes
- Code refactoring
- WP 3.9 compat
Download this release
Release Info
Developer | Mike_Koepke |
Plugin | External Links |
Version | 5.3 |
Comparing to | |
See all releases |
Code changes from version 5.3.2 to 5.3
- readme.txt +0 -8
- sem-external-links.php +5 -7
readme.txt
CHANGED
@@ -36,14 +36,6 @@ If you require more dedicated assistance, consider using [Semiologic Pro](http:/
|
|
36 |
|
37 |
== Change Log ==
|
38 |
|
39 |
-
= 5.3.2 =
|
40 |
-
|
41 |
-
- Temporarily placeholders links - http:// and https:// (no other url components) are no longer processed.
|
42 |
-
|
43 |
-
= 5.3.1 =
|
44 |
-
|
45 |
-
- Fix localization
|
46 |
-
|
47 |
= 5.3 =
|
48 |
|
49 |
- Fix: Conflict with Auto Thickbox plugin that would result in text widgets still being filtered even though option was turned off
|
36 |
|
37 |
== Change Log ==
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
= 5.3 =
|
40 |
|
41 |
- Fix: Conflict with Auto Thickbox plugin that would result in text widgets still being filtered even though option was turned off
|
sem-external-links.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: External Links
|
4 |
Plugin URI: http://www.semiologic.com/software/external-links/
|
5 |
Description: Marks outbound links as such, with various effects that are configurable under <a href="options-general.php?page=external-links">Settings / External Links</a>.
|
6 |
-
Version: 5.3
|
7 |
Author: Denis de Bernardy & Mike Koepke
|
8 |
Author URI: http://www.getsemiologic.com
|
9 |
Text Domain: external-links
|
@@ -81,7 +81,7 @@ class external_links {
|
|
81 |
load_plugin_textdomain(
|
82 |
$domain,
|
83 |
FALSE,
|
84 |
-
|
85 |
);
|
86 |
}
|
87 |
|
@@ -209,8 +209,6 @@ class external_links {
|
|
209 |
function is_local_url($url) {
|
210 |
if ( in_array(substr($url, 0, 1), array('?', '#')) || strpos($url, '://') === false )
|
211 |
return true;
|
212 |
-
elseif ( $url == 'http://' || $url == 'https://' )
|
213 |
-
return true;
|
214 |
elseif ( preg_match("~/go(/|\.)~i", $url) )
|
215 |
return false;
|
216 |
|
@@ -262,9 +260,9 @@ class external_links {
|
|
262 |
if ( !$site_domain )
|
263 |
return false;
|
264 |
|
265 |
-
$link_domain =
|
266 |
-
if ($link_domain
|
267 |
-
return
|
268 |
elseif (is_array($link_domain)) {
|
269 |
if (isset($link_domain['host']))
|
270 |
$link_domain = $link_domain['host'];
|
3 |
Plugin Name: External Links
|
4 |
Plugin URI: http://www.semiologic.com/software/external-links/
|
5 |
Description: Marks outbound links as such, with various effects that are configurable under <a href="options-general.php?page=external-links">Settings / External Links</a>.
|
6 |
+
Version: 5.3
|
7 |
Author: Denis de Bernardy & Mike Koepke
|
8 |
Author URI: http://www.getsemiologic.com
|
9 |
Text Domain: external-links
|
81 |
load_plugin_textdomain(
|
82 |
$domain,
|
83 |
FALSE,
|
84 |
+
$this->plugin_path . 'lang'
|
85 |
);
|
86 |
}
|
87 |
|
209 |
function is_local_url($url) {
|
210 |
if ( in_array(substr($url, 0, 1), array('?', '#')) || strpos($url, '://') === false )
|
211 |
return true;
|
|
|
|
|
212 |
elseif ( preg_match("~/go(/|\.)~i", $url) )
|
213 |
return false;
|
214 |
|
260 |
if ( !$site_domain )
|
261 |
return false;
|
262 |
|
263 |
+
$link_domain = parse_url($url);
|
264 |
+
if ($link_domain == false)
|
265 |
+
return false;
|
266 |
elseif (is_array($link_domain)) {
|
267 |
if (isset($link_domain['host']))
|
268 |
$link_domain = $link_domain['host'];
|