Version Description
- Compatibility with WordPress 6.0
- Resolve PHP Warnings
Download this release
Release Info
Developer | pattihis |
Plugin | Link Juice Keeper |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.2
- includes/class-link-juice-keeper.php +1 -1
- link-juice-keeper.php +2 -2
- public/class-link-juice-keeper-public.php +7 -11
- readme.txt +10 -6
includes/class-link-juice-keeper.php
CHANGED
@@ -70,7 +70,7 @@ class Link_Juice_Keeper {
|
|
70 |
if ( defined( 'LINK_JUICE_KEEPER_VERSION' ) ) {
|
71 |
$this->version = LINK_JUICE_KEEPER_VERSION;
|
72 |
} else {
|
73 |
-
$this->version = '2.0.
|
74 |
}
|
75 |
$this->plugin_name = 'link-juice-keeper';
|
76 |
|
70 |
if ( defined( 'LINK_JUICE_KEEPER_VERSION' ) ) {
|
71 |
$this->version = LINK_JUICE_KEEPER_VERSION;
|
72 |
} else {
|
73 |
+
$this->version = '2.0.2';
|
74 |
}
|
75 |
$this->plugin_name = 'link-juice-keeper';
|
76 |
|
link-juice-keeper.php
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
* Plugin Name: Link Juice Keeper
|
14 |
* Plugin URI: https://wordpress.org/plugins/link-juice-keeper/
|
15 |
* Description: Improve your SEO and keep your link juice by automatically redirecting all 404 errors to any page/post/url. User friendly options and log feature.
|
16 |
-
* Version: 2.0.
|
17 |
* Requires at least: 5.2
|
18 |
* Requires PHP: 7.2
|
19 |
* Author: George Pattihis
|
@@ -64,7 +64,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
64 |
/**
|
65 |
* Current plugin version.
|
66 |
*/
|
67 |
-
define( 'LINK_JUICE_KEEPER_VERSION', '2.0.
|
68 |
|
69 |
/**
|
70 |
* The code that runs during plugin activation.
|
13 |
* Plugin Name: Link Juice Keeper
|
14 |
* Plugin URI: https://wordpress.org/plugins/link-juice-keeper/
|
15 |
* Description: Improve your SEO and keep your link juice by automatically redirecting all 404 errors to any page/post/url. User friendly options and log feature.
|
16 |
+
* Version: 2.0.2
|
17 |
* Requires at least: 5.2
|
18 |
* Requires PHP: 7.2
|
19 |
* Author: George Pattihis
|
64 |
/**
|
65 |
* Current plugin version.
|
66 |
*/
|
67 |
+
define( 'LINK_JUICE_KEEPER_VERSION', '2.0.2' );
|
68 |
|
69 |
/**
|
70 |
* The code that runs during plugin activation.
|
public/class-link-juice-keeper-public.php
CHANGED
@@ -122,7 +122,9 @@ class Link_Juice_Keeper_Public {
|
|
122 |
$this->log_error( (bool)$options['redirect_log'] );
|
123 |
|
124 |
// Send email notification
|
125 |
-
|
|
|
|
|
126 |
|
127 |
// Redirect the user.
|
128 |
$this->redirect( $type, $target );
|
@@ -151,19 +153,13 @@ class Link_Juice_Keeper_Public {
|
|
151 |
}
|
152 |
|
153 |
// Set visitor's user agent/browser.
|
154 |
-
|
155 |
-
$ua = esc_attr( $_SERVER['HTTP_USER_AGENT'] );
|
156 |
-
}
|
157 |
|
158 |
// Set visitor's referring link.
|
159 |
-
|
160 |
-
$ref = esc_url( $_SERVER['HTTP_REFERER'] );
|
161 |
-
}
|
162 |
|
163 |
// Set visitor's referring link
|
164 |
-
|
165 |
-
$url = untrailingslashit( esc_url( $_SERVER['REQUEST_URI'] ) );
|
166 |
-
}
|
167 |
|
168 |
// Set current time.
|
169 |
$time = current_time( 'mysql' );
|
@@ -172,7 +168,7 @@ class Link_Juice_Keeper_Public {
|
|
172 |
'date' => $time,
|
173 |
'ip' => $ip,
|
174 |
'url' => $url,
|
175 |
-
'ref' =>
|
176 |
'ua' => $ua,
|
177 |
'status' => 1,
|
178 |
);
|
122 |
$this->log_error( (bool)$options['redirect_log'] );
|
123 |
|
124 |
// Send email notification
|
125 |
+
if (isset($options['email_notify'])) {
|
126 |
+
$this->email_alert( (bool)$options['email_notify'] );
|
127 |
+
}
|
128 |
|
129 |
// Redirect the user.
|
130 |
$this->redirect( $type, $target );
|
153 |
}
|
154 |
|
155 |
// Set visitor's user agent/browser.
|
156 |
+
$ua = isset( $_SERVER['HTTP_USER_AGENT'] ) ? esc_attr( $_SERVER['HTTP_USER_AGENT'] ) : '';
|
|
|
|
|
157 |
|
158 |
// Set visitor's referring link.
|
159 |
+
$ref = isset( $_SERVER['HTTP_REFERER'] ) ? esc_url( $_SERVER['HTTP_REFERER'] ) : '';
|
|
|
|
|
160 |
|
161 |
// Set visitor's referring link
|
162 |
+
$url = isset( $_SERVER['REQUEST_URI'] ) ? untrailingslashit( esc_url( $_SERVER['REQUEST_URI'] ) ) : '';
|
|
|
|
|
163 |
|
164 |
// Set current time.
|
165 |
$time = current_time( 'mysql' );
|
168 |
'date' => $time,
|
169 |
'ip' => $ip,
|
170 |
'url' => $url,
|
171 |
+
'ref' => $ref,
|
172 |
'ua' => $ua,
|
173 |
'status' => 1,
|
174 |
);
|
readme.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
=== Link Juice Keeper ===
|
2 |
-
Contributors:
|
3 |
Tags: 404, not found, link, links, error, redirect, seo
|
4 |
Donate link: https://profiles.wordpress.org/pattihis/
|
5 |
-
Requires at least:
|
6 |
-
Tested up to:
|
7 |
-
Requires PHP:
|
8 |
-
Stable tag: 2.0.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -40,7 +40,7 @@ Any of the above will lead to link juice waste and a 404 error. You can avoid th
|
|
40 |
* Build according to best practices and WordPress coding standards
|
41 |
* Never have a 404 error again!
|
42 |
|
43 |
-
*Link Juice Keeper* was originally developed by [Daniel Frużyński](https://profiles.wordpress.org/sirzooro/). The plugin has been adopted and
|
44 |
|
45 |
[Changelog](http://wordpress.org/extend/plugins/link-juice-keeper/changelog/)
|
46 |
|
@@ -73,6 +73,10 @@ Of course! "Link Juice Keeper" is compatible with any theme and plugin that foll
|
|
73 |
|
74 |
== Changelog ==
|
75 |
|
|
|
|
|
|
|
|
|
76 |
= 2.0.1 =
|
77 |
* Bug: Syntax error
|
78 |
|
1 |
=== Link Juice Keeper ===
|
2 |
+
Contributors: pattihis
|
3 |
Tags: 404, not found, link, links, error, redirect, seo
|
4 |
Donate link: https://profiles.wordpress.org/pattihis/
|
5 |
+
Requires at least: 5.2
|
6 |
+
Tested up to: 6.0
|
7 |
+
Requires PHP: 7.2
|
8 |
+
Stable tag: 2.0.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
40 |
* Build according to best practices and WordPress coding standards
|
41 |
* Never have a 404 error again!
|
42 |
|
43 |
+
*Link Juice Keeper* was originally developed by [Daniel Frużyński](https://profiles.wordpress.org/sirzooro/). The plugin has been adopted and refactored by [George Pattihis](https://profiles.wordpress.org/pattihis/) who will continue development and maintenance.
|
44 |
|
45 |
[Changelog](http://wordpress.org/extend/plugins/link-juice-keeper/changelog/)
|
46 |
|
73 |
|
74 |
== Changelog ==
|
75 |
|
76 |
+
= 2.0.2 =
|
77 |
+
* Compatibility with WordPress 6.0
|
78 |
+
* Resolve PHP Warnings
|
79 |
+
|
80 |
= 2.0.1 =
|
81 |
* Bug: Syntax error
|
82 |
|