Version Description
Download this release
Release Info
Developer | sirzooro |
Plugin | Link Juice Keeper |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 1.1.1
- link-juice-keeper.php +3 -3
- readme.html +8 -4
- readme.txt +7 -3
link-juice-keeper.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Link Juice Keeper
|
|
4 |
Plugin URI: http://www.poradnik-webmastera.com/projekty/link_juice_keeper/
|
5 |
Description: This plugin helps you to keep the link juice by redirecting all non-existing URLs which normally return a 404 error to the front blog page using 301 redirect.
|
6 |
Author: Daniel Frużyński
|
7 |
-
Version: 1.1
|
8 |
Author URI: http://www.poradnik-webmastera.com/
|
9 |
*/
|
10 |
|
@@ -36,7 +36,7 @@ if ( !class_exists( 'LinkJuiceKeeper' ) ) {
|
|
36 |
add_filter( 'status_header', array( &$this, 'status_header' ), 100, 2 );
|
37 |
}
|
38 |
|
39 |
-
/*//
|
40 |
function init() {
|
41 |
if ( function_exists( 'load_plugin_textdomain' ) ) {
|
42 |
load_plugin_textdomain( 'link-juice-keeper', PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)) );
|
@@ -45,7 +45,7 @@ if ( !class_exists( 'LinkJuiceKeeper' ) ) {
|
|
45 |
|
46 |
function status_header( $status_header, $header ) {
|
47 |
if ( $header == 404 ) {
|
48 |
-
wp_redirect( get_bloginfo( '
|
49 |
exit();
|
50 |
} else {
|
51 |
return $status_header;
|
4 |
Plugin URI: http://www.poradnik-webmastera.com/projekty/link_juice_keeper/
|
5 |
Description: This plugin helps you to keep the link juice by redirecting all non-existing URLs which normally return a 404 error to the front blog page using 301 redirect.
|
6 |
Author: Daniel Frużyński
|
7 |
+
Version: 1.1.1
|
8 |
Author URI: http://www.poradnik-webmastera.com/
|
9 |
*/
|
10 |
|
36 |
add_filter( 'status_header', array( &$this, 'status_header' ), 100, 2 );
|
37 |
}
|
38 |
|
39 |
+
/*// Initialise plugin
|
40 |
function init() {
|
41 |
if ( function_exists( 'load_plugin_textdomain' ) ) {
|
42 |
load_plugin_textdomain( 'link-juice-keeper', PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)) );
|
45 |
|
46 |
function status_header( $status_header, $header ) {
|
47 |
if ( $header == 404 ) {
|
48 |
+
wp_redirect( get_bloginfo( 'siteurl' ) , 301 );
|
49 |
exit();
|
50 |
} else {
|
51 |
return $status_header;
|
readme.html
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
3 |
<head>
|
4 |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
5 |
-
<title>Link Juice Keeper 1.1 Readme</title>
|
6 |
</head>
|
7 |
<body>
|
8 |
-
<h1>Link Juice Keeper 1.1 Readme</h1>
|
9 |
<p>This plugin helps you to keep the link juice by redirecting all non-existing URLs which normally return a 404 error to the blog front page using 301 redirect.</p>
|
10 |
<p><b>Plugin Homepage:</b> <a href="http://www.poradnik-webmastera.com/projekty/link_juice_keeper/">Link Juice Keeper</a></p>
|
11 |
<p><b>Plugin Homepage on WordPress.org:</b> <a href="http://wordpress.org/extend/plugins/link-juice-keeper/">Link Juice Keeper</a></p>
|
@@ -30,13 +30,17 @@
|
|
30 |
</ol>
|
31 |
|
32 |
<h2>Changelog</h2>
|
|
|
|
|
|
|
|
|
33 |
<p>1.1</p>
|
34 |
<ul>
|
35 |
-
<li>Decreased filter priority, so now it will run after ones with default priority
|
36 |
</ul>
|
37 |
<p>1.0</p>
|
38 |
<ul>
|
39 |
-
<li>Initial version
|
40 |
</ul>
|
41 |
</body>
|
42 |
</html>
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
3 |
<head>
|
4 |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
5 |
+
<title>Link Juice Keeper 1.1.1 Readme</title>
|
6 |
</head>
|
7 |
<body>
|
8 |
+
<h1>Link Juice Keeper 1.1.1 Readme</h1>
|
9 |
<p>This plugin helps you to keep the link juice by redirecting all non-existing URLs which normally return a 404 error to the blog front page using 301 redirect.</p>
|
10 |
<p><b>Plugin Homepage:</b> <a href="http://www.poradnik-webmastera.com/projekty/link_juice_keeper/">Link Juice Keeper</a></p>
|
11 |
<p><b>Plugin Homepage on WordPress.org:</b> <a href="http://wordpress.org/extend/plugins/link-juice-keeper/">Link Juice Keeper</a></p>
|
30 |
</ol>
|
31 |
|
32 |
<h2>Changelog</h2>
|
33 |
+
<p>1.1.1</p>
|
34 |
+
<ul>
|
35 |
+
<li>Make plugin compatible with WordPress 2.8</li>
|
36 |
+
</ul>
|
37 |
<p>1.1</p>
|
38 |
<ul>
|
39 |
+
<li>Decreased filter priority, so now it will run after ones with default priority</li>
|
40 |
</ul>
|
41 |
<p>1.0</p>
|
42 |
<ul>
|
43 |
+
<li>Initial version</li>
|
44 |
</ul>
|
45 |
</body>
|
46 |
</html>
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: sirzooro
|
3 |
Tags: google, link, links, redirect, seo
|
4 |
Requires at least: 2.2
|
5 |
-
Tested up to: 2.
|
6 |
-
Stable tag: 1.1
|
7 |
|
8 |
This plugin helps you to keep the link juice by redirecting all non-existing URLs (they return error 404) to the blog front page using 301 redirect.
|
9 |
|
@@ -18,7 +18,7 @@ As you probably know, incoming links play important role in ranking well in Goog
|
|
18 |
|
19 |
All of the above leads to link juice waste. You can avoid this by using this plugin. It redirects all non-existing URLs which normally return a 404 error to the blog front page using 301 (permanent) redirect. This way everyone who comes to your blog via broken link (both people and robots) will be redirected to the front page.
|
20 |
|
21 |
-
[Changelog](http://wordpress.org/extend/plugins/
|
22 |
|
23 |
== Installation ==
|
24 |
|
@@ -28,6 +28,10 @@ All of the above leads to link juice waste. You can avoid this by using this plu
|
|
28 |
|
29 |
== Changelog ==
|
30 |
|
|
|
|
|
|
|
|
|
31 |
1.1
|
32 |
|
33 |
* Decreased filter priority, so now it will run after ones with default priority
|
2 |
Contributors: sirzooro
|
3 |
Tags: google, link, links, redirect, seo
|
4 |
Requires at least: 2.2
|
5 |
+
Tested up to: 2.8
|
6 |
+
Stable tag: 1.1.1
|
7 |
|
8 |
This plugin helps you to keep the link juice by redirecting all non-existing URLs (they return error 404) to the blog front page using 301 redirect.
|
9 |
|
18 |
|
19 |
All of the above leads to link juice waste. You can avoid this by using this plugin. It redirects all non-existing URLs which normally return a 404 error to the blog front page using 301 (permanent) redirect. This way everyone who comes to your blog via broken link (both people and robots) will be redirected to the front page.
|
20 |
|
21 |
+
[Changelog](http://wordpress.org/extend/plugins/link-juice-keeper/other_notes/)
|
22 |
|
23 |
== Installation ==
|
24 |
|
28 |
|
29 |
== Changelog ==
|
30 |
|
31 |
+
1.1.1
|
32 |
+
|
33 |
+
* Make plugin compatible with WordPress 2.8
|
34 |
+
|
35 |
1.1
|
36 |
|
37 |
* Decreased filter priority, so now it will run after ones with default priority
|