All 404 Redirect to Homepage - Version 3.5

Version Description

  • Bug fixing - PHP 8.1 issue
Download this release

Release Info

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

Code changes from version 3.4 to 3.5

Files changed (3) hide show
  1. all-404-redirect-to-homepage.php +1 -1
  2. functions.php +2 -2
  3. readme.txt +6 -2
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.4
8
  Author URI: https://www.wp-buy.com
9
  */
10
  register_activation_hook( __FILE__, 'p404_modify_htaccess' );
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.5
8
  Author URI: https://www.wp-buy.com
9
  */
10
  register_activation_hook( __FILE__, 'p404_modify_htaccess' );
functions.php CHANGED
@@ -9,8 +9,8 @@ function P404REDIRECT_after_plugin_row($plugin_file, $plugin_data, $status)
9
  {
10
  if(get_option('P404REDIRECT_upgrade_msg') !='hidemsg')
11
  {
12
- $class_name = $plugin_data['TextDomain']; // $plugin_data is an array retrived by default when you action this function after_plugin_row
13
-
14
  echo '<tr id="' .esc_attr($class_name). '-plugin-update-tr" class="plugin-update-tr active">';
15
  echo '<td colspan="6" class="plugin-update">';
16
  echo '<div id="' .esc_attr($class_name). '-upgradeMsg" class="update-message" style="background:#FFF8E5; padding-left:10px; border-left:#FFB900 solid 4px" >';
9
  {
10
  if(get_option('P404REDIRECT_upgrade_msg') !='hidemsg')
11
  {
12
+ $class_name = isset($plugin_data['slug']) ? $plugin_data['slug'] : 'all-404-redirect-to-homepage'; // $plugin_data is an array retrived by default when you action this function after_plugin_row
13
+
14
  echo '<tr id="' .esc_attr($class_name). '-plugin-update-tr" class="plugin-update-tr active">';
15
  echo '<td colspan="6" class="plugin-update">';
16
  echo '<div id="' .esc_attr($class_name). '-upgradeMsg" class="update-message" style="background:#FFF8E5; padding-left:10px; border-left:#FFB900 solid 4px" >';
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  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.9.1
6
- Stable tag: 3.4
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
 
@@ -34,6 +34,10 @@ Extract the zip file and just drop the contents in the wp-content/plugins/ direc
34
 
35
  == Changelog ==
36
 
 
 
 
 
37
  = 3.4 =
38
  * Tested with the latest WordPress Version
39
 
2
  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.9.2
6
+ Stable tag: 3.5
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
 
34
 
35
  == Changelog ==
36
 
37
+ = 3.5 =
38
+ * Bug fixing - PHP 8.1 issue
39
+
40
+
41
  = 3.4 =
42
  * Tested with the latest WordPress Version
43