WP 404 Auto Redirect to Similar Post - Version 0.9.0.1

Version Description

  • Fix: Paged request redirection "Uncaught Argument" error
Download this release

Release Info

Developer hwk-fr
Plugin Icon 128x128 WP 404 Auto Redirect to Similar Post
Version 0.9.0.1
Comparing to
See all releases

Code changes from version 0.9 to 0.9.0.1

readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://hwk.fr/
4
  Tags: SEO, 404, Redirect, 301, Similar, Related, Search, Broken Link, Webmaster Tools, Google
5
  Requires at least: 4.0
6
  Tested up to: 4.9.1
7
- Stable tag: 0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -77,6 +77,9 @@ They talk about it! :)
77
 
78
  == Changelog ==
79
 
 
 
 
80
  = 0.9 =
81
  * Fix: 302 headers option would not save
82
  * Fix: Redirection loop in some specific cases - Direct match on private posts
4
  Tags: SEO, 404, Redirect, 301, Similar, Related, Search, Broken Link, Webmaster Tools, Google
5
  Requires at least: 4.0
6
  Tested up to: 4.9.1
7
+ Stable tag: 0.9.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
77
 
78
  == Changelog ==
79
 
80
+ = 0.9.0.1 =
81
+ * Fix: Paged request redirection "Uncaught Argument" error
82
+
83
  = 0.9 =
84
  * Fix: 302 headers option would not save
85
  * Fix: Redirection loop in some specific cases - Direct match on private posts
wp-404-auto-redirect-similar-post.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP 404 Auto Redirect to Similar Post
4
  * Description: Automatically Redirect any 404 to a Similar Post based on the Title, Post Type, Category & Taxonomy using 301 Redirects!
5
  * Author: hwk-fr
6
- * Version: 0.9
7
  * Author URI: http://hwk.fr
8
  */
9
 
@@ -562,7 +562,10 @@ function wp404arsp_search($query, $settings){
562
 
563
  }
564
 
565
- function wp404arsp_redirect($args, $settings){
 
 
 
566
  $args = apply_filters('wp404arsp/redirect', $args, $settings);
567
 
568
  if(is_user_logged_in() && current_user_can('administrator') && ($settings['debug'] || (isset($args['preview']) && $args['preview'])))
3
  * Plugin Name: WP 404 Auto Redirect to Similar Post
4
  * Description: Automatically Redirect any 404 to a Similar Post based on the Title, Post Type, Category & Taxonomy using 301 Redirects!
5
  * Author: hwk-fr
6
+ * Version: 0.9.0.1
7
  * Author URI: http://hwk.fr
8
  */
9
 
562
 
563
  }
564
 
565
+ function wp404arsp_redirect($args, $settings = false){
566
+ if(!$settings)
567
+ $settings = wp404arsp_get_settings();
568
+
569
  $args = apply_filters('wp404arsp/redirect', $args, $settings);
570
 
571
  if(is_user_logged_in() && current_user_can('administrator') && ($settings['debug'] || (isset($args['preview']) && $args['preview'])))