All 404 Redirect to Homepage - Version 3.7

Version Description

  • fix show more link on network sites
Download this release

Release Info

Developer wp-buy
Plugin Icon 128x128 All 404 Redirect to Homepage
Version 3.7
Comparing to
See all releases

Code changes from version 3.6 to 3.7

Files changed (2) hide show
  1. all-404-redirect-to-homepage.php +4 -2
  2. readme.txt +4 -1
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.6
8
  Author URI: https://www.wp-buy.com
9
  */
10
  register_activation_hook( __FILE__, 'p404_modify_htaccess' );
@@ -25,7 +25,9 @@ add_action('wp_ajax_P404REDIRECT_HideAlert', 'P404REDIRECT_HideAlert');
25
 
26
  function P404REDIRECT__filter_action_links( $links ) {
27
  $links['settings'] = sprintf('<a href="%s">Settings</a>', admin_url( 'admin.php?page=all-404-redirect-to-homepage.php' ));
28
- $links['MorePlugins'] = sprintf('<a href="%s"><b style="color:#f18500">More Plugins</b></a>', admin_url( 'plugin-install.php?s=wp-buy&tab=search&type=author' ));
 
 
29
  return $links;
30
  }
31
  add_filter( 'plugin_action_links_'.plugin_basename(__FILE__), 'P404REDIRECT__filter_action_links', 10, 1 );
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.7
8
  Author URI: https://www.wp-buy.com
9
  */
10
  register_activation_hook( __FILE__, 'p404_modify_htaccess' );
25
 
26
  function P404REDIRECT__filter_action_links( $links ) {
27
  $links['settings'] = sprintf('<a href="%s">Settings</a>', admin_url( 'admin.php?page=all-404-redirect-to-homepage.php' ));
28
+ $network_dir_append = "";
29
+ If (is_multisite()) $network_dir_append = "network/";
30
+ $links['MorePlugins'] = sprintf('<a href="%s"><b style="color:#f18500">More Plugins</b></a>', admin_url( $network_dir_append . 'plugin-install.php?s=wp-buy&tab=search&type=author' ));
31
  return $links;
32
  }
33
  add_filter( 'plugin_action_links_'.plugin_basename(__FILE__), 'P404REDIRECT__filter_action_links', 10, 1 );
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: 6.0
6
- Stable tag: 3.6
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,9 @@ Extract the zip file and just drop the contents in the wp-content/plugins/ direc
34
 
35
  == Changelog ==
36
 
 
 
 
37
  = 3.6 =
38
  * show alert message if you have many broken links
39
  * compatibility check with wordpress 6.0
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: 6.0
6
+ Stable tag: 3.7
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.7 =
38
+ * fix show more link on network sites
39
+
40
  = 3.6 =
41
  * show alert message if you have many broken links
42
  * compatibility check with wordpress 6.0