All 404 Redirect to Homepage - Version 3.2

Version Description

  • Bug fixes in function prefix
Download this release

Release Info

Developer osamaesh
Plugin Icon 128x128 All 404 Redirect to Homepage
Version 3.2
Comparing to
See all releases

Code changes from version 3.1 to 3.2

Files changed (2) hide show
  1. all-404-redirect-to-homepage.php +6 -4
  2. readme.txt +11 -6
all-404-redirect-to-homepage.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: All 404 Redirect to Homepage
4
  Plugin URI: https://www.wp-buy.com
5
  Description: a plugin to redirect 404 pages to home page or any custom page
6
  Author: wp-buy
7
- Version: 3.1
8
  Author URI: https://www.wp-buy.com
9
  */
10
  register_activation_hook( __FILE__, 'p404_modify_htaccess' );
@@ -132,12 +132,14 @@ add_action("after_plugin_row_{$path}", 'P404REDIRECT_after_plugin_row', 10, 3);
132
 
133
 
134
 
135
- add_action( 'admin_enqueue_scripts', 'misha_include_js' );
136
 
137
- function misha_include_js()
138
  {
139
 
140
- if ($_GET['page'] = 'all-404-redirect-to-homepage.php') {
 
 
141
  if (!did_action('wp_enqueue_media')) {
142
  wp_enqueue_media();
143
  }
4
  Plugin URI: https://www.wp-buy.com
5
  Description: a plugin to redirect 404 pages to home page or any custom page
6
  Author: wp-buy
7
+ Version: 3.2
8
  Author URI: https://www.wp-buy.com
9
  */
10
  register_activation_hook( __FILE__, 'p404_modify_htaccess' );
132
 
133
 
134
 
135
+ add_action( 'admin_enqueue_scripts', 'p404_include_js' );
136
 
137
+ function p404_include_js()
138
  {
139
 
140
+ $mypage = isset($_GET['page']) ? $_GET['page'] : '';
141
+
142
+ if ($mypage == 'all-404-redirect-to-homepage.php') {
143
  if (!did_action('wp_enqueue_media')) {
144
  wp_enqueue_media();
145
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wp-buy, osama.esh
3
  Tags: 404 error, redirection, homepage, broken images, redirection, https, automatic redirection, 404 link,redirect, soft 404, redirected, 301 seo redirect, post redirect plugin, broken links, fix 404
4
  Requires at least: 3.5
5
  Tested up to: 5.8.1
6
- Stable tag: 3.1
7
 
8
  By using this smart plugin, you can fix all 404 error links by redirecting them to homepage using the SEO 301 redirection. Improve your visibility in search engines now..
9
 
@@ -13,11 +13,11 @@ By this plugin you can fix all random 404 links appear in you your website and r
13
 
14
  **How to use the plugin?**
15
 
16
- - 1. After installing the plugin go to the plugin control panel from settings menu.
17
- - 2. Put the link where the plugin should redirect all 404 links in the text box.
18
- - 3. Select the plugin status to be enabled.
19
- - 4. Click the button <b>Update Options</b> to save the from.
20
- - 5. Go to <b>404 URLs</b> tab to see the latest 404 links discovered and redirected
21
 
22
  **Note**
23
  Please make sure than the page you put above in the control panel to redirect all 404 to it is a valid link. If this page is not valid it will be considred as an 404 link and will result in redirect loop. In case of redirect loop you can simply disable the plugin and check the page is valid or not.
@@ -34,6 +34,11 @@ Extract the zip file and just drop the contents in the wp-content/plugins/ direc
34
 
35
  == Changelog ==
36
 
 
 
 
 
 
37
  = 3.1 =
38
  * New feature - Replace all broken images with a custom image
39
 
3
  Tags: 404 error, redirection, homepage, broken images, redirection, https, automatic redirection, 404 link,redirect, soft 404, redirected, 301 seo redirect, post redirect plugin, broken links, fix 404
4
  Requires at least: 3.5
5
  Tested up to: 5.8.1
6
+ Stable tag: 3.2
7
 
8
  By using this smart plugin, you can fix all 404 error links by redirecting them to homepage using the SEO 301 redirection. Improve your visibility in search engines now..
9
 
13
 
14
  **How to use the plugin?**
15
 
16
+ - After installing the plugin go to the plugin control panel from settings menu.
17
+ - Put the link where the plugin should redirect all 404 links in the text box.
18
+ - Select the plugin status to be enabled.
19
+ - Click the button <b>Update Options</b> to save the from.
20
+ - Go to <b>404 URLs</b> tab to see the latest 404 links discovered and redirected
21
 
22
  **Note**
23
  Please make sure than the page you put above in the control panel to redirect all 404 to it is a valid link. If this page is not valid it will be considred as an 404 link and will result in redirect loop. In case of redirect loop you can simply disable the plugin and check the page is valid or not.
34
 
35
  == Changelog ==
36
 
37
+ = 3.2 =
38
+ * Bug fixes in function prefix
39
+
40
+
41
+
42
  = 3.1 =
43
  * New feature - Replace all broken images with a custom image
44