Version Description
- Fixed mark mailto links as excluded
- Fixed include / exclude url's
Download this release
Release Info
| Developer | freelancephp |
| Plugin | |
| Version | 2.0.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.0 to 2.0.1
- includes/admin/class-wpel-network-page.php +1 -1
- includes/admin/class-wpel-settings-page.php +1 -1
- includes/admin/network-fields/class-wpel-network-admin-fields.php +1 -1
- includes/admin/network-fields/class-wpel-network-fields.php +1 -1
- includes/admin/settings-fields/class-wpel-admin-fields.php +1 -1
- includes/admin/settings-fields/class-wpel-exceptions-fields.php +1 -1
- includes/admin/settings-fields/class-wpel-external-link-fields.php +1 -1
- includes/admin/settings-fields/class-wpel-internal-link-fields.php +1 -1
- includes/admin/settings-fields/class-wpel-link-fields-base.php +1 -1
- includes/class-wpel-front-ignore.php +1 -1
- includes/class-wpel-front.php +33 -25
- includes/class-wpel-link.php +1 -1
- includes/class-wpel-plugin.php +1 -1
- includes/class-wpel-registerhooks.php +9 -11
- includes/class-wpel-template-tags.php +1 -1
- includes/class-wpel-textdomain.php +1 -1
- readme.txt +5 -2
- templates/network-page/help-tabs/under-construction.php +1 -1
- templates/network-page/main.php +1 -1
- templates/partials/nav-tabs.php +1 -1
- templates/partials/tab-contents/fields-default.php +1 -1
- templates/partials/tab-contents/support.php +1 -1
- templates/requirements-notice.php +1 -1
- templates/settings-page/help-tabs/data-attributes.php +1 -1
- templates/settings-page/help-tabs/under-construction.php +1 -1
- templates/settings-page/main.php +1 -1
- templates/settings-page/tab-contents/exceptions.php +1 -1
- wp-external-links.php +2 -2
includes/admin/class-wpel-network-page.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
includes/admin/class-wpel-settings-page.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
includes/admin/network-fields/class-wpel-network-admin-fields.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
includes/admin/network-fields/class-wpel-network-fields.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
includes/admin/settings-fields/class-wpel-admin-fields.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
includes/admin/settings-fields/class-wpel-exceptions-fields.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
includes/admin/settings-fields/class-wpel-external-link-fields.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
includes/admin/settings-fields/class-wpel-internal-link-fields.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
includes/admin/settings-fields/class-wpel-link-fields-base.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
includes/class-wpel-front-ignore.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
includes/class-wpel-front.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
|
@@ -110,26 +110,26 @@ final class WPEL_Front extends WPRun_Base_1x0x0
|
|
| 110 |
return $content;
|
| 111 |
}
|
| 112 |
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
$content = apply_filters( 'wpel_before_filter', $content );
|
| 118 |
|
| 119 |
$regexp_link = '/<a[^A-Za-z](.*?)>(.*?)<\/a[\s+]*>/is';
|
| 120 |
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
$regexp_link = apply_filters( 'wpel_regexp_link', $regexp_link );
|
| 126 |
|
| 127 |
-
|
| 128 |
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
$content = apply_filters( 'wpel_after_filter', $content );
|
| 134 |
|
| 135 |
return $content;
|
|
@@ -206,13 +206,10 @@ final class WPEL_Front extends WPRun_Base_1x0x0
|
|
| 206 |
|
| 207 |
$excludes_as_internal_links = $this->opt( 'excludes_as_internal_links' );
|
| 208 |
|
| 209 |
-
//
|
| 210 |
-
$is_included = $link->isExternal() || $this->is_included_url( $url );
|
| 211 |
$is_excluded = $link->isExclude() || $this->is_excluded_url( $url );
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
$is_internal = ( $link->isInternal() || $this->is_internal_url( $url ) ) || ( $is_excluded && $excludes_as_internal_links );
|
| 215 |
-
$is_external = ( $link->isExternal() || $is_included ) || ( ! $is_internal && ! $is_excluded );
|
| 216 |
|
| 217 |
if ( $is_external ) {
|
| 218 |
$link->setExternal();
|
|
@@ -348,11 +345,16 @@ final class WPEL_Front extends WPRun_Base_1x0x0
|
|
| 348 |
if ( null === $include_urls_arr ) {
|
| 349 |
$include_urls = $this->opt( 'include_urls' );
|
| 350 |
$include_urls = str_replace( "\n", ',', $include_urls );
|
| 351 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 352 |
}
|
| 353 |
|
| 354 |
foreach ( $include_urls_arr as $include_url ) {
|
| 355 |
-
if ( false !==
|
| 356 |
return true;
|
| 357 |
}
|
| 358 |
}
|
|
@@ -373,11 +375,16 @@ final class WPEL_Front extends WPRun_Base_1x0x0
|
|
| 373 |
if ( null === $exclude_urls_arr ) {
|
| 374 |
$exclude_urls = $this->opt( 'exclude_urls' );
|
| 375 |
$exclude_urls = str_replace( "\n", ',', $exclude_urls );
|
| 376 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 377 |
}
|
| 378 |
|
| 379 |
foreach ( $exclude_urls_arr as $exclude_url ) {
|
| 380 |
-
|
| 381 |
return true;
|
| 382 |
}
|
| 383 |
}
|
|
@@ -396,7 +403,8 @@ final class WPEL_Front extends WPRun_Base_1x0x0
|
|
| 396 |
if ( substr( $url, 0, 7 ) !== 'http://'
|
| 397 |
&& substr( $url, 0, 8 ) !== 'https://'
|
| 398 |
&& substr( $url, 0, 6 ) !== 'ftp://'
|
| 399 |
-
&& substr( $url, 0, 2 ) !== '//'
|
|
|
|
| 400 |
return true;
|
| 401 |
}
|
| 402 |
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 110 |
return $content;
|
| 111 |
}
|
| 112 |
|
| 113 |
+
/**
|
| 114 |
+
* Filters before scanning content
|
| 115 |
+
* @param string $content
|
| 116 |
+
*/
|
| 117 |
$content = apply_filters( 'wpel_before_filter', $content );
|
| 118 |
|
| 119 |
$regexp_link = '/<a[^A-Za-z](.*?)>(.*?)<\/a[\s+]*>/is';
|
| 120 |
|
| 121 |
+
/**
|
| 122 |
+
* Filters for changing regular expression for getting html links
|
| 123 |
+
* @param string $regexp_link
|
| 124 |
+
*/
|
| 125 |
$regexp_link = apply_filters( 'wpel_regexp_link', $regexp_link );
|
| 126 |
|
| 127 |
+
$content = preg_replace_callback( $regexp_link, $this->get_callback( 'match_link' ), $content );
|
| 128 |
|
| 129 |
+
/**
|
| 130 |
+
* Filters after scanning content
|
| 131 |
+
* @param string $content
|
| 132 |
+
*/
|
| 133 |
$content = apply_filters( 'wpel_after_filter', $content );
|
| 134 |
|
| 135 |
return $content;
|
| 206 |
|
| 207 |
$excludes_as_internal_links = $this->opt( 'excludes_as_internal_links' );
|
| 208 |
|
| 209 |
+
// internal, external or excluded
|
|
|
|
| 210 |
$is_excluded = $link->isExclude() || $this->is_excluded_url( $url );
|
| 211 |
+
$is_internal = $link->isInternal() || ( $this->is_internal_url( $url ) && ! $this->is_included_url( $url ) ) || ( $is_excluded && $excludes_as_internal_links );
|
| 212 |
+
$is_external = $link->isExternal() || ( ! $is_internal && ! $is_excluded );
|
|
|
|
|
|
|
| 213 |
|
| 214 |
if ( $is_external ) {
|
| 215 |
$link->setExternal();
|
| 345 |
if ( null === $include_urls_arr ) {
|
| 346 |
$include_urls = $this->opt( 'include_urls' );
|
| 347 |
$include_urls = str_replace( "\n", ',', $include_urls );
|
| 348 |
+
|
| 349 |
+
if ( '' === trim( $include_urls ) ) {
|
| 350 |
+
$include_urls_arr = array();
|
| 351 |
+
} else {
|
| 352 |
+
$include_urls_arr = array_map( 'trim', explode( ',', $include_urls ) );
|
| 353 |
+
}
|
| 354 |
}
|
| 355 |
|
| 356 |
foreach ( $include_urls_arr as $include_url ) {
|
| 357 |
+
if ( false !== strpos( $url, $include_url ) ) {
|
| 358 |
return true;
|
| 359 |
}
|
| 360 |
}
|
| 375 |
if ( null === $exclude_urls_arr ) {
|
| 376 |
$exclude_urls = $this->opt( 'exclude_urls' );
|
| 377 |
$exclude_urls = str_replace( "\n", ',', $exclude_urls );
|
| 378 |
+
|
| 379 |
+
if ( '' === trim( $exclude_urls ) ) {
|
| 380 |
+
$exclude_urls_arr = array();
|
| 381 |
+
} else {
|
| 382 |
+
$exclude_urls_arr = array_map( 'trim', explode( ',', $exclude_urls ) );
|
| 383 |
+
}
|
| 384 |
}
|
| 385 |
|
| 386 |
foreach ( $exclude_urls_arr as $exclude_url ) {
|
| 387 |
+
if ( false !== strpos( $url, $exclude_url ) ) {
|
| 388 |
return true;
|
| 389 |
}
|
| 390 |
}
|
| 403 |
if ( substr( $url, 0, 7 ) !== 'http://'
|
| 404 |
&& substr( $url, 0, 8 ) !== 'https://'
|
| 405 |
&& substr( $url, 0, 6 ) !== 'ftp://'
|
| 406 |
+
&& substr( $url, 0, 2 ) !== '//'
|
| 407 |
+
&& substr( $url, 0, 7 ) !== 'mailto:' ) {
|
| 408 |
return true;
|
| 409 |
}
|
| 410 |
|
includes/class-wpel-link.php
CHANGED
|
@@ -7,7 +7,7 @@
|
|
| 7 |
*
|
| 8 |
* @package WPEL
|
| 9 |
* @category WordPress Plugin
|
| 10 |
-
* @version 2.0.
|
| 11 |
* @author Victor Villaverde Laan
|
| 12 |
* @link http://www.finewebdev.com
|
| 13 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 7 |
*
|
| 8 |
* @package WPEL
|
| 9 |
* @category WordPress Plugin
|
| 10 |
+
* @version 2.0.1
|
| 11 |
* @author Victor Villaverde Laan
|
| 12 |
* @link http://www.finewebdev.com
|
| 13 |
* @link https://github.com/freelancephp/WP-External-Links
|
includes/class-wpel-plugin.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
includes/class-wpel-registerhooks.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
|
@@ -35,7 +35,7 @@ final class WPEL_Registerhooks extends WPRun_Base_1x0x0
|
|
| 35 |
protected function activate( $networkwide )
|
| 36 |
{
|
| 37 |
global $wpdb;
|
| 38 |
-
|
| 39 |
if ( is_multisite() && $networkwide ) {
|
| 40 |
// network activation
|
| 41 |
$sites = wp_get_sites();
|
|
@@ -94,18 +94,16 @@ final class WPEL_Registerhooks extends WPRun_Base_1x0x0
|
|
| 94 |
$exceptions_link_values = WPEL_Exceptions_Fields::get_instance()->get_default_values();
|
| 95 |
$admin_link_values = WPEL_Admin_Fields::get_instance()->get_default_values();
|
| 96 |
|
|
|
|
| 97 |
// check for old option values version < 2.0.0
|
| 98 |
$old_main = get_option( 'wp_external_links-main' );
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
|
| 100 |
// convert old to new db option values
|
| 101 |
-
if ( ! empty( $old_main ) ) {
|
| 102 |
-
// get other old values
|
| 103 |
-
$old_meta = get_option( 'wp_external_links-meta' );
|
| 104 |
-
$old_seo = get_option( 'wp_external_links-seo' );
|
| 105 |
-
$old_style = get_option( 'wp_external_links-style' );
|
| 106 |
-
$old_extra = get_option( 'wp_external_links-extra' );
|
| 107 |
-
$old_screen = get_option( 'wp_external_links-screen' );
|
| 108 |
-
|
| 109 |
// helper function
|
| 110 |
$val = function ( $arr, $key, $default = '' ) {
|
| 111 |
if ( ! isset( $arr[ $key ] ) ) {
|
|
@@ -195,7 +193,7 @@ final class WPEL_Registerhooks extends WPRun_Base_1x0x0
|
|
| 195 |
delete_site_option( 'wpel-network-admin-settings' );
|
| 196 |
} else {
|
| 197 |
// single site activation
|
| 198 |
-
$this->
|
| 199 |
}
|
| 200 |
}
|
| 201 |
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 35 |
protected function activate( $networkwide )
|
| 36 |
{
|
| 37 |
global $wpdb;
|
| 38 |
+
|
| 39 |
if ( is_multisite() && $networkwide ) {
|
| 40 |
// network activation
|
| 41 |
$sites = wp_get_sites();
|
| 94 |
$exceptions_link_values = WPEL_Exceptions_Fields::get_instance()->get_default_values();
|
| 95 |
$admin_link_values = WPEL_Admin_Fields::get_instance()->get_default_values();
|
| 96 |
|
| 97 |
+
// Upgrade to version 2
|
| 98 |
// check for old option values version < 2.0.0
|
| 99 |
$old_main = get_option( 'wp_external_links-main' );
|
| 100 |
+
$old_seo = get_option( 'wp_external_links-seo' );
|
| 101 |
+
$old_style = get_option( 'wp_external_links-style' );
|
| 102 |
+
$old_extra = get_option( 'wp_external_links-extra' );
|
| 103 |
+
$old_screen = get_option( 'wp_external_links-screen' );
|
| 104 |
|
| 105 |
// convert old to new db option values
|
| 106 |
+
if ( ! empty( $old_main ) || ! empty( $old_seo ) || ! empty( $old_style ) || ! empty( $old_extra ) || ! empty( $old_screen ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
// helper function
|
| 108 |
$val = function ( $arr, $key, $default = '' ) {
|
| 109 |
if ( ! isset( $arr[ $key ] ) ) {
|
| 193 |
delete_site_option( 'wpel-network-admin-settings' );
|
| 194 |
} else {
|
| 195 |
// single site activation
|
| 196 |
+
$this->uninstall_site();
|
| 197 |
}
|
| 198 |
}
|
| 199 |
|
includes/class-wpel-template-tags.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
includes/class-wpel-textdomain.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: freelancephp
|
|
| 3 |
Tags: links, new window, new tab, external links, nofollow, follow, seo, noopener, noreferrer, internal links, link icon, link target, _blank, wpmu
|
| 4 |
Requires at least: 4.2.0
|
| 5 |
Tested up to: 4.5.2
|
| 6 |
-
Stable tag: 2.0.
|
| 7 |
|
| 8 |
Open external links in a new tab / window, add "nofollow", "noopener" and font icons, SEO and more. Also for internal links.
|
| 9 |
|
|
@@ -38,7 +38,6 @@ The plugin filters the output and changes the links on the fly. The real content
|
|
| 38 |
When deactivating the plugin, all contents will be the same as it was before.
|
| 39 |
|
| 40 |
= Requirements =
|
| 41 |
-
This plugin needs:
|
| 42 |
* PHP version 5.3 or up
|
| 43 |
* WordPress version 4.2 or up
|
| 44 |
|
|
@@ -210,6 +209,10 @@ See [FAQ](https://wordpress.org/plugins/wp-external-links/faq/) for more info.
|
|
| 210 |
|
| 211 |
== Changelog ==
|
| 212 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 213 |
= 2.0.0 =
|
| 214 |
* REQUIREMENTS: PHP 5.3+
|
| 215 |
* Complete rebuilt
|
| 3 |
Tags: links, new window, new tab, external links, nofollow, follow, seo, noopener, noreferrer, internal links, link icon, link target, _blank, wpmu
|
| 4 |
Requires at least: 4.2.0
|
| 5 |
Tested up to: 4.5.2
|
| 6 |
+
Stable tag: 2.0.1
|
| 7 |
|
| 8 |
Open external links in a new tab / window, add "nofollow", "noopener" and font icons, SEO and more. Also for internal links.
|
| 9 |
|
| 38 |
When deactivating the plugin, all contents will be the same as it was before.
|
| 39 |
|
| 40 |
= Requirements =
|
|
|
|
| 41 |
* PHP version 5.3 or up
|
| 42 |
* WordPress version 4.2 or up
|
| 43 |
|
| 209 |
|
| 210 |
== Changelog ==
|
| 211 |
|
| 212 |
+
= 2.0.1 =
|
| 213 |
+
* Fixed mark mailto links as excluded
|
| 214 |
+
* Fixed include / exclude url's
|
| 215 |
+
|
| 216 |
= 2.0.0 =
|
| 217 |
* REQUIREMENTS: PHP 5.3+
|
| 218 |
* Complete rebuilt
|
templates/network-page/help-tabs/under-construction.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
templates/network-page/main.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
templates/partials/nav-tabs.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
templates/partials/tab-contents/fields-default.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
templates/partials/tab-contents/support.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
templates/requirements-notice.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
templates/settings-page/help-tabs/data-attributes.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
templates/settings-page/help-tabs/under-construction.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
templates/settings-page/main.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
templates/settings-page/tab-contents/exceptions.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link http://www.finewebdev.com
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
wp-external-links.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
-
* @version 2.0.
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link https://wordpress.org/plugins/wp-external-links/
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @wordpress-plugin
|
| 14 |
* Plugin Name: WP External Links
|
| 15 |
-
* Version: 2.0.
|
| 16 |
* Plugin URI: https://wordpress.org/plugins/wp-external-links/
|
| 17 |
* Description: Open external links in a new tab or window, adding "nofollow" and "noopener", set font icon, SEO friendly options and more.
|
| 18 |
* Author: Victor Villaverde Laan
|
| 4 |
*
|
| 5 |
* @package WPEL
|
| 6 |
* @category WordPress Plugin
|
| 7 |
+
* @version 2.0.1
|
| 8 |
* @author Victor Villaverde Laan
|
| 9 |
* @link https://wordpress.org/plugins/wp-external-links/
|
| 10 |
* @link https://github.com/freelancephp/WP-External-Links
|
| 12 |
*
|
| 13 |
* @wordpress-plugin
|
| 14 |
* Plugin Name: WP External Links
|
| 15 |
+
* Version: 2.0.1
|
| 16 |
* Plugin URI: https://wordpress.org/plugins/wp-external-links/
|
| 17 |
* Description: Open external links in a new tab or window, adding "nofollow" and "noopener", set font icon, SEO friendly options and more.
|
| 18 |
* Author: Victor Villaverde Laan
|
