Version Description
- 2022-05-06
- security fix reported by Automattic
Download this release
Release Info
Developer | WebFactory |
Plugin | Open external links in a new window |
Version | 1.43 |
Comparing to | |
See all releases |
Code changes from version 1.42 to 1.43
- open-external-links-in-a-new-window.php +3 -3
- readme.txt +5 -2
open-external-links-in-a-new-window.php
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
Plugin Name: Open External Links in a New Window
|
4 |
Plugin URI: https://wordpress.org/extend/plugins/open-external-links-in-a-new-window/
|
5 |
Description: Opens all external links in a new window. XHTML Strict compliant and search engine optimized (SEO).
|
6 |
-
Version: 1.
|
7 |
Author: WebFactory Ltd
|
8 |
Author URI: https://www.webfactoryltd.com/
|
9 |
Text Domain: open-external-links-in-a-new-window
|
10 |
Requires at least: 4.0
|
11 |
Requires PHP: 5.2
|
12 |
-
Tested up to:
|
13 |
License: GPL2
|
14 |
|
15 |
Copyright 2015 - 2021 WebFactory Ltd (email: support@webfactoryltd.com)
|
@@ -79,7 +79,7 @@ function external_links_in_new_windows_client()
|
|
79 |
|
80 |
if(change_link == true) {
|
81 |
// console.log('Changed ' + all_links.href);
|
82 |
-
document.links[t].setAttribute('onClick', 'javascript:window.open(\\''+all_links.href+'\\'); return false;');
|
83 |
document.links[t].removeAttribute('target');
|
84 |
}
|
85 |
}
|
3 |
Plugin Name: Open External Links in a New Window
|
4 |
Plugin URI: https://wordpress.org/extend/plugins/open-external-links-in-a-new-window/
|
5 |
Description: Opens all external links in a new window. XHTML Strict compliant and search engine optimized (SEO).
|
6 |
+
Version: 1.43
|
7 |
Author: WebFactory Ltd
|
8 |
Author URI: https://www.webfactoryltd.com/
|
9 |
Text Domain: open-external-links-in-a-new-window
|
10 |
Requires at least: 4.0
|
11 |
Requires PHP: 5.2
|
12 |
+
Tested up to: 6.0
|
13 |
License: GPL2
|
14 |
|
15 |
Copyright 2015 - 2021 WebFactory Ltd (email: support@webfactoryltd.com)
|
79 |
|
80 |
if(change_link == true) {
|
81 |
// console.log('Changed ' + all_links.href);
|
82 |
+
document.links[t].setAttribute('onClick', 'javascript:window.open(\\'' + all_links.href.replace(/'/g, '') + '\\', \'_blank\', \'noopener\'); return false;');
|
83 |
document.links[t].removeAttribute('target');
|
84 |
}
|
85 |
}
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: WebFactory
|
|
3 |
Tags: links, external links, target blank, new window, new tab, target new, blank window, blank tab, tabs, SEO
|
4 |
Requires at least: 4.0
|
5 |
Requires PHP: 5.2
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -47,6 +47,9 @@ Kristian Risager Larsen - <a href="http://kezze.dk">kezze.dk</a>
|
|
47 |
|
48 |
|
49 |
== Changelog ==
|
|
|
|
|
|
|
50 |
|
51 |
= 1.42 =
|
52 |
* 2021-01-30
|
3 |
Tags: links, external links, target blank, new window, new tab, target new, blank window, blank tab, tabs, SEO
|
4 |
Requires at least: 4.0
|
5 |
Requires PHP: 5.2
|
6 |
+
Tested up to: 6.1
|
7 |
+
Stable tag: 1.43
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
47 |
|
48 |
|
49 |
== Changelog ==
|
50 |
+
= 1.43 =
|
51 |
+
* 2022-05-06
|
52 |
+
* security fix reported by Automattic
|
53 |
|
54 |
= 1.42 =
|
55 |
* 2021-01-30
|