Version Description
- Bug: Syntax error
Download this release
Release Info
Developer | pattihis |
Plugin | Link Juice Keeper |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.0 to 2.0.1
admin/css/link-juice-keeper-admin.css
CHANGED
@@ -18,6 +18,10 @@
|
|
18 |
flex-basis: 29%;
|
19 |
}
|
20 |
|
|
|
|
|
|
|
|
|
21 |
@media only screen and (max-width: 992px) {
|
22 |
.ljk_main_wrap {
|
23 |
flex-direction: column;
|
@@ -26,4 +30,4 @@
|
|
26 |
margin: 0 20px 30px 0;
|
27 |
flex-basis: 100%;
|
28 |
}
|
29 |
-
}
|
18 |
flex-basis: 29%;
|
19 |
}
|
20 |
|
21 |
+
.ljk_main_right h4 {
|
22 |
+
text-decoration: underline;
|
23 |
+
}
|
24 |
+
|
25 |
@media only screen and (max-width: 992px) {
|
26 |
.ljk_main_wrap {
|
27 |
flex-direction: column;
|
30 |
margin: 0 20px 30px 0;
|
31 |
flex-basis: 100%;
|
32 |
}
|
33 |
+
}
|
admin/partials/link-juice-keeper-admin-display-logs.php
CHANGED
@@ -20,7 +20,7 @@ $table = new Link_Juice_Keeper_Logs();
|
|
20 |
|
21 |
<h1>404 Logs</h1>
|
22 |
<div class="wrap">
|
23 |
-
<h4><?php _e( 'All
|
24 |
<div id="poststuff">
|
25 |
<div id="post-body" class="metabox-holder">
|
26 |
<div id="post-body-content">
|
20 |
|
21 |
<h1>404 Logs</h1>
|
22 |
<div class="wrap">
|
23 |
+
<h4><?php _e( 'All 404 errors recorded in the database', 'link-juice-keeper' ); ?></h4>
|
24 |
<div id="poststuff">
|
25 |
<div id="post-body" class="metabox-holder">
|
26 |
<div id="post-body-content">
|
admin/partials/link-juice-keeper-admin-display.php
CHANGED
@@ -21,7 +21,7 @@ $hide = ' style="display: none;"';
|
|
21 |
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
|
22 |
|
23 |
<h1><?php _e( 'Link Juice Keeper', 'link-juice-keeper' ); ?></h1>
|
24 |
-
<
|
25 |
<div class="ljk_main_wrap">
|
26 |
<div class="ljk_main_left">
|
27 |
<form method="post" action="options.php">
|
@@ -57,7 +57,7 @@ $hide = ' style="display: none;"';
|
|
57 |
<th><?php _e( 'Select a Page', 'link-juice-keeper' ); ?></th>
|
58 |
<td>
|
59 |
<?php wp_dropdown_pages( array( 'name' => 'ljk_main_settings[redirect_page]', 'selected' => $options['redirect_page'] ) ); ?>
|
60 |
-
<p><?php _e( 'Select a <b>Page</b>
|
61 |
|
62 |
</td>
|
63 |
</tr>
|
@@ -65,7 +65,7 @@ $hide = ' style="display: none;"';
|
|
65 |
<th><?php _e( 'Select a Post', 'link-juice-keeper' ); ?></th>
|
66 |
<td>
|
67 |
<?php $plugin_admin->wp_dropdown_posts( array( 'selected' => $options['redirect_post'], 'select_name' => 'ljk_main_settings[redirect_post]' ) ); ?>
|
68 |
-
<p><?php _e( 'Select a <b>Post</b>
|
69 |
|
70 |
</td>
|
71 |
</tr>
|
@@ -73,7 +73,7 @@ $hide = ' style="display: none;"';
|
|
73 |
<th><?php _e( 'Custom URL', 'link-juice-keeper' ); ?></th>
|
74 |
<td>
|
75 |
<input type="url" placeholder="<?php echo home_url(); ?>" name="ljk_main_settings[redirect_link]" value="<?php echo $options['redirect_link']; ?>">
|
76 |
-
<p><?php _e( 'Enter any <b>custom link</b> to redirect all 404 errors to
|
77 |
</td>
|
78 |
</tr>
|
79 |
<tr>
|
@@ -99,7 +99,7 @@ $hide = ' style="display: none;"';
|
|
99 |
</tr>
|
100 |
</tbody>
|
101 |
</table>
|
102 |
-
<?php submit_button( __( 'Save
|
103 |
</form><!-- /.form -->
|
104 |
</div>
|
105 |
<div class="ljk_main_right">
|
21 |
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
|
22 |
|
23 |
<h1><?php _e( 'Link Juice Keeper', 'link-juice-keeper' ); ?></h1>
|
24 |
+
<h4><?php _e( 'Resolve 404 errors with automatic redirect', 'link-juice-keeper' ); ?></h4>
|
25 |
<div class="ljk_main_wrap">
|
26 |
<div class="ljk_main_left">
|
27 |
<form method="post" action="options.php">
|
57 |
<th><?php _e( 'Select a Page', 'link-juice-keeper' ); ?></th>
|
58 |
<td>
|
59 |
<?php wp_dropdown_pages( array( 'name' => 'ljk_main_settings[redirect_page]', 'selected' => $options['redirect_page'] ) ); ?>
|
60 |
+
<p><?php _e( 'Select a <b>Page</b> from this list to redirect all 404 errors to', 'link-juice-keeper' ); ?></p>
|
61 |
|
62 |
</td>
|
63 |
</tr>
|
65 |
<th><?php _e( 'Select a Post', 'link-juice-keeper' ); ?></th>
|
66 |
<td>
|
67 |
<?php $plugin_admin->wp_dropdown_posts( array( 'selected' => $options['redirect_post'], 'select_name' => 'ljk_main_settings[redirect_post]' ) ); ?>
|
68 |
+
<p><?php _e( 'Select a <b>Post</b> from this list to redirect all 404 errors to', 'link-juice-keeper' ); ?></p>
|
69 |
|
70 |
</td>
|
71 |
</tr>
|
73 |
<th><?php _e( 'Custom URL', 'link-juice-keeper' ); ?></th>
|
74 |
<td>
|
75 |
<input type="url" placeholder="<?php echo home_url(); ?>" name="ljk_main_settings[redirect_link]" value="<?php echo $options['redirect_link']; ?>">
|
76 |
+
<p><?php _e( 'Enter any <b>custom link</b> to redirect all 404 errors to', 'link-juice-keeper' ); ?></p>
|
77 |
</td>
|
78 |
</tr>
|
79 |
<tr>
|
99 |
</tr>
|
100 |
</tbody>
|
101 |
</table>
|
102 |
+
<?php submit_button( __( 'Save options', 'link-juice-keeper' ) ); ?>
|
103 |
</form><!-- /.form -->
|
104 |
</div>
|
105 |
<div class="ljk_main_right">
|
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 |
|
@@ -115,7 +115,7 @@ class Link_Juice_Keeper {
|
|
115 |
* The class responsible for defining all actions that occur in the admin area.
|
116 |
*/
|
117 |
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-link-juice-keeper-admin.php';
|
118 |
-
|
119 |
/**
|
120 |
* The class responsible for displaying logs in a WP_List_Table format
|
121 |
*/
|
@@ -166,7 +166,7 @@ class Link_Juice_Keeper {
|
|
166 |
$this->loader->add_filter( 'admin_init', $plugin_admin, 'add_buffer' );
|
167 |
$this->loader->add_action( 'admin_init', $plugin_admin, 'register_settings' );
|
168 |
$this->loader->add_action( 'admin_menu', $plugin_admin, 'linkJuiceKeeper_admin_menu' );
|
169 |
-
|
170 |
|
171 |
}
|
172 |
|
70 |
if ( defined( 'LINK_JUICE_KEEPER_VERSION' ) ) {
|
71 |
$this->version = LINK_JUICE_KEEPER_VERSION;
|
72 |
} else {
|
73 |
+
$this->version = '2.0.1';
|
74 |
}
|
75 |
$this->plugin_name = 'link-juice-keeper';
|
76 |
|
115 |
* The class responsible for defining all actions that occur in the admin area.
|
116 |
*/
|
117 |
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-link-juice-keeper-admin.php';
|
118 |
+
|
119 |
/**
|
120 |
* The class responsible for displaying logs in a WP_List_Table format
|
121 |
*/
|
166 |
$this->loader->add_filter( 'admin_init', $plugin_admin, 'add_buffer' );
|
167 |
$this->loader->add_action( 'admin_init', $plugin_admin, 'register_settings' );
|
168 |
$this->loader->add_action( 'admin_menu', $plugin_admin, 'linkJuiceKeeper_admin_menu' );
|
169 |
+
|
170 |
|
171 |
}
|
172 |
|
link-juice-keeper.php
CHANGED
@@ -7,13 +7,13 @@
|
|
7 |
* @copyright 2021 George Pattihis
|
8 |
* @license GPL-2.0-or-later
|
9 |
* @link https://profiles.wordpress.org/pattihis/
|
10 |
-
* @since 2.0.0
|
11 |
*
|
12 |
* @wordpress-plugin
|
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
|
@@ -27,7 +27,7 @@
|
|
27 |
/* Copyright 2009,2011 Daniel Frużyński (daniel@poradnik-webmastera.com)
|
28 |
|
29 |
This program is free software; you can redistribute it and/or modify
|
30 |
-
it under the terms of the GNU General Public License, version 2, as
|
31 |
published by the Free Software Foundation.
|
32 |
|
33 |
This program is distributed in the hope that it will be useful,
|
@@ -46,12 +46,12 @@
|
|
46 |
it under the terms of the GNU General Public License as published by
|
47 |
the Free Software Foundation, either version 2 of the License, or
|
48 |
any later version.
|
49 |
-
|
50 |
"Link Juice Keeper" is distributed in the hope that it will be useful,
|
51 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
52 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
53 |
GNU General Public License for more details.
|
54 |
-
|
55 |
You should have received a copy of the GNU General Public License
|
56 |
"along with Link Juice Keeper". If not, see http://www.gnu.org/licenses/gpl-2.0.txt.
|
57 |
*/
|
@@ -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.
|
@@ -72,17 +72,17 @@ define( 'LINK_JUICE_KEEPER_VERSION', '2.0.0' );
|
|
72 |
*/
|
73 |
function activate_link_juice_keeper($network_wide) {
|
74 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-link-juice-keeper-activator.php';
|
75 |
-
|
76 |
-
if ( is_multisite() && $network_wide ) {
|
77 |
foreach (get_sites(['fields'=>'ids']) as $blog_id) {
|
78 |
switch_to_blog($blog_id);
|
79 |
Link_Juice_Keeper_Activator::activate();
|
80 |
restore_current_blog();
|
81 |
-
}
|
82 |
} else {
|
83 |
Link_Juice_Keeper_Activator::activate();
|
84 |
}
|
85 |
-
|
86 |
}
|
87 |
|
88 |
/**
|
7 |
* @copyright 2021 George Pattihis
|
8 |
* @license GPL-2.0-or-later
|
9 |
* @link https://profiles.wordpress.org/pattihis/
|
10 |
+
* @since 2.0.0
|
11 |
*
|
12 |
* @wordpress-plugin
|
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.1
|
17 |
* Requires at least: 5.2
|
18 |
* Requires PHP: 7.2
|
19 |
* Author: George Pattihis
|
27 |
/* Copyright 2009,2011 Daniel Frużyński (daniel@poradnik-webmastera.com)
|
28 |
|
29 |
This program is free software; you can redistribute it and/or modify
|
30 |
+
it under the terms of the GNU General Public License, version 2, as
|
31 |
published by the Free Software Foundation.
|
32 |
|
33 |
This program is distributed in the hope that it will be useful,
|
46 |
it under the terms of the GNU General Public License as published by
|
47 |
the Free Software Foundation, either version 2 of the License, or
|
48 |
any later version.
|
49 |
+
|
50 |
"Link Juice Keeper" is distributed in the hope that it will be useful,
|
51 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
52 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
53 |
GNU General Public License for more details.
|
54 |
+
|
55 |
You should have received a copy of the GNU General Public License
|
56 |
"along with Link Juice Keeper". If not, see http://www.gnu.org/licenses/gpl-2.0.txt.
|
57 |
*/
|
64 |
/**
|
65 |
* Current plugin version.
|
66 |
*/
|
67 |
+
define( 'LINK_JUICE_KEEPER_VERSION', '2.0.1' );
|
68 |
|
69 |
/**
|
70 |
* The code that runs during plugin activation.
|
72 |
*/
|
73 |
function activate_link_juice_keeper($network_wide) {
|
74 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-link-juice-keeper-activator.php';
|
75 |
+
|
76 |
+
if ( is_multisite() && $network_wide ) {
|
77 |
foreach (get_sites(['fields'=>'ids']) as $blog_id) {
|
78 |
switch_to_blog($blog_id);
|
79 |
Link_Juice_Keeper_Activator::activate();
|
80 |
restore_current_blog();
|
81 |
+
}
|
82 |
} else {
|
83 |
Link_Juice_Keeper_Activator::activate();
|
84 |
}
|
85 |
+
|
86 |
}
|
87 |
|
88 |
/**
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: sirzooro, pattihis
|
|
3 |
Tags: 404, not found, link, links, error, redirect, seo
|
4 |
Donate link: https://profiles.wordpress.org/pattihis/
|
5 |
Requires at least: 3.0.1
|
6 |
-
Tested up to: 5.
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.0.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -73,6 +73,9 @@ Of course! "Link Juice Keeper" is compatible with any theme and plugin that foll
|
|
73 |
|
74 |
== Changelog ==
|
75 |
|
|
|
|
|
|
|
76 |
= 2.0.0 =
|
77 |
* Major update - compatible with WP 5.7.x
|
78 |
* Feature: Select Redirect Type (301, 302, 307)
|
3 |
Tags: 404, not found, link, links, error, redirect, seo
|
4 |
Donate link: https://profiles.wordpress.org/pattihis/
|
5 |
Requires at least: 3.0.1
|
6 |
+
Tested up to: 5.9
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.0.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
73 |
|
74 |
== Changelog ==
|
75 |
|
76 |
+
= 2.0.1 =
|
77 |
+
* Bug: Syntax error
|
78 |
+
|
79 |
= 2.0.0 =
|
80 |
* Major update - compatible with WP 5.7.x
|
81 |
* Feature: Select Redirect Type (301, 302, 307)
|