Version Description
- Further updates to the link attribute parsing code
- Fixed bug where external link was not processed if it was preceded by an empty text anchor link.
Download this release
Release Info
Developer | Mike_Koepke |
Plugin | External Links |
Version | 5.2 |
Comparing to | |
See all releases |
Code changes from version 5.2.1 to 5.2
- readme.txt +1 -6
- sem-external-links-admin.php +5 -2
- sem-external-links.php +4 -4
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Denis-de-Bernardy, Mike_Koepke
|
|
3 |
Donate link: http://www.semiologic.com/partners/
|
4 |
Tags: external-links, nofollow, link-target, link-icon, semiologic
|
5 |
Requires at least: 2.8
|
6 |
-
Tested up to: 3.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -36,11 +36,6 @@ If you require more dedicated assistance, consider using [Semiologic Pro](http:/
|
|
36 |
|
37 |
== Change Log ==
|
38 |
|
39 |
-
= 5.2.1 =
|
40 |
-
|
41 |
-
- Checks for new sem_dofollow class to determine if Do Follow plugin is active
|
42 |
-
- WP 3.8 compat
|
43 |
-
|
44 |
= 5.2 =
|
45 |
|
46 |
- Further updates to the link attribute parsing code
|
3 |
Donate link: http://www.semiologic.com/partners/
|
4 |
Tags: external-links, nofollow, link-target, link-icon, semiologic
|
5 |
Requires at least: 2.8
|
6 |
+
Tested up to: 3.7
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
36 |
|
37 |
== Change Log ==
|
38 |
|
|
|
|
|
|
|
|
|
|
|
39 |
= 5.2 =
|
40 |
|
41 |
- Further updates to the link attribute parsing code
|
sem-external-links-admin.php
CHANGED
@@ -9,7 +9,7 @@ class external_links_admin {
|
|
9 |
/**
|
10 |
* external_links_admin()
|
11 |
*/
|
12 |
-
|
13 |
add_action('settings_page_external-links', array($this, 'save_options'), 0);
|
14 |
}
|
15 |
|
@@ -54,7 +54,7 @@ class external_links_admin {
|
|
54 |
|
55 |
$options = external_links::get_options();
|
56 |
|
57 |
-
if ( $options['nofollow'] &&
|
58 |
echo "<div class=\"error\">\n"
|
59 |
. "<p>"
|
60 |
. __('Note: Your rel=nofollow preferences is being ignored because the dofollow plugin is enabled on your site.', 'external-links')
|
@@ -62,6 +62,8 @@ class external_links_admin {
|
|
62 |
. "</div>\n";
|
63 |
}
|
64 |
|
|
|
|
|
65 |
echo '<h2>' . __('External Links Settings', 'external-links') . '</h2>' . "\n";
|
66 |
|
67 |
echo '<table class="form-table">' . "\n";
|
@@ -161,3 +163,4 @@ class external_links_admin {
|
|
161 |
} # external_links_admin
|
162 |
|
163 |
$external_links_admin = new external_links_admin();
|
|
9 |
/**
|
10 |
* external_links_admin()
|
11 |
*/
|
12 |
+
function external_links_admin() {
|
13 |
add_action('settings_page_external-links', array($this, 'save_options'), 0);
|
14 |
}
|
15 |
|
54 |
|
55 |
$options = external_links::get_options();
|
56 |
|
57 |
+
if ( $options['nofollow'] && function_exists('strip_nofollow') ) {
|
58 |
echo "<div class=\"error\">\n"
|
59 |
. "<p>"
|
60 |
. __('Note: Your rel=nofollow preferences is being ignored because the dofollow plugin is enabled on your site.', 'external-links')
|
62 |
. "</div>\n";
|
63 |
}
|
64 |
|
65 |
+
screen_icon();
|
66 |
+
|
67 |
echo '<h2>' . __('External Links Settings', 'external-links') . '</h2>' . "\n";
|
68 |
|
69 |
echo '<table class="form-table">' . "\n";
|
163 |
} # external_links_admin
|
164 |
|
165 |
$external_links_admin = new external_links_admin();
|
166 |
+
?>
|
sem-external-links.php
CHANGED
@@ -3,12 +3,12 @@
|
|
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.2
|
7 |
Author: Denis de Bernardy & Mike Koepke
|
8 |
-
Author URI: http://www.
|
9 |
Text Domain: external-links
|
10 |
Domain Path: /lang
|
11 |
-
License: Dual licensed under the MIT and
|
12 |
*/
|
13 |
|
14 |
/*
|
@@ -53,7 +53,7 @@ class external_links {
|
|
53 |
$this->anchor_utils = new anchor_utils( $inc_text_widgets );
|
54 |
|
55 |
if ( $o['icon'] )
|
56 |
-
add_action('
|
57 |
|
58 |
add_filter(($o['global'] ? 'ob_' : '' ) . 'filter_anchor', array($this, 'filter'));
|
59 |
|
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.2
|
7 |
Author: Denis de Bernardy & Mike Koepke
|
8 |
+
Author URI: http://www.semiologic.com
|
9 |
Text Domain: external-links
|
10 |
Domain Path: /lang
|
11 |
+
License: Dual licensed under the MIT and GPL licenses
|
12 |
*/
|
13 |
|
14 |
/*
|
53 |
$this->anchor_utils = new anchor_utils( $inc_text_widgets );
|
54 |
|
55 |
if ( $o['icon'] )
|
56 |
+
add_action('wp_print_styles', array($this, 'styles'), 5);
|
57 |
|
58 |
add_filter(($o['global'] ? 'ob_' : '' ) . 'filter_anchor', array($this, 'filter'));
|
59 |
|