WordPress SEO Plugin – Rank Math - Version 1.0.32.1

Version Description

[Aug 29, 2019] = * Fixed fatal error happening on some WooCommerce installations * Fixed WooCommerce redirection issue on some installations

Full changelog can be found here - Rank Math SEO changelog

Download this release

Release Info

Developer rankmath
Plugin Icon 128x128 WordPress SEO Plugin – Rank Math
Version 1.0.32.1
Comparing to
See all releases

Code changes from version 1.0.32 to 1.0.32.1

includes/modules/robots-txt/class-robots-txt.php CHANGED
@@ -83,18 +83,19 @@ class Robots_Txt {
83
  */
84
  public static function get_robots_data() {
85
  $wp_filesystem = WordPress::get_filesystem();
 
86
 
87
  if ( $wp_filesystem->exists( ABSPATH . 'robots.txt' ) ) {
88
  return [
89
  'exists' => true,
90
  'default' => $wp_filesystem->get_contents( ABSPATH . 'robots.txt' ),
 
91
  ];
92
  }
93
 
94
  $default = '# This file is automatically added by Rank Math SEO plugin to help a website index better';
95
  $default .= "\n# More info: https://s.rankmath.com/home\n";
96
  $default .= "User-Agent: *\n";
97
- $public = absint( get_option( 'blog_public' ) );
98
  if ( 0 === $public ) {
99
  $default .= "Disallow: /\n";
100
  } else {
83
  */
84
  public static function get_robots_data() {
85
  $wp_filesystem = WordPress::get_filesystem();
86
+ $public = absint( get_option( 'blog_public' ) );
87
 
88
  if ( $wp_filesystem->exists( ABSPATH . 'robots.txt' ) ) {
89
  return [
90
  'exists' => true,
91
  'default' => $wp_filesystem->get_contents( ABSPATH . 'robots.txt' ),
92
+ 'public' => $public,
93
  ];
94
  }
95
 
96
  $default = '# This file is automatically added by Rank Math SEO plugin to help a website index better';
97
  $default .= "\n# More info: https://s.rankmath.com/home\n";
98
  $default .= "User-Agent: *\n";
 
99
  if ( 0 === $public ) {
100
  $default .= "Disallow: /\n";
101
  } else {
includes/modules/sitemap/class-cache-watcher.php CHANGED
@@ -234,7 +234,7 @@ class Cache_Watcher {
234
  update_user_meta( $user_id, 'last_update', time() );
235
  }
236
 
237
- if ( ! is_null( $user->roles ) && ! in_array( 'subscriber', $user->roles, true ) ) {
238
  self::invalidate( 'author' );
239
  }
240
  }
234
  update_user_meta( $user_id, 'last_update', time() );
235
  }
236
 
237
+ if ( $user && ! is_null( $user->roles ) && ! in_array( 'subscriber', $user->roles, true ) ) {
238
  self::invalidate( 'author' );
239
  }
240
  }
includes/modules/woocommerce/class-product-redirection.php CHANGED
@@ -100,17 +100,10 @@ class Product_Redirection {
100
  * @return bool
101
  */
102
  private function can_redirect() {
103
- if ( ! $this->do_filter( 'woocommerce/product_redirection', true ) ) {
104
  return false;
105
  }
106
 
107
- if (
108
- ( Helper::get_settings( 'general.wc_remove_product_base' ) && is_product() ) ||
109
- ( Helper::get_settings( 'general.wc_remove_category_base' ) && is_product_category() )
110
- ) {
111
- return true;
112
- }
113
-
114
- return false;
115
  }
116
  }
100
  * @return bool
101
  */
102
  private function can_redirect() {
103
+ if ( ! ( is_product() || is_product_category() || $this->do_filter( 'woocommerce/product_redirection', true ) ) ) {
104
  return false;
105
  }
106
 
107
+ return true;
 
 
 
 
 
 
 
108
  }
109
  }
includes/modules/woocommerce/class-sitemap.php CHANGED
@@ -11,6 +11,7 @@
11
  namespace RankMath\WooCommerce;
12
 
13
  use RankMath\Helper;
 
14
  use MyThemeShop\Helpers\Attachment;
15
 
16
  defined( 'ABSPATH' ) || exit;
11
  namespace RankMath\WooCommerce;
12
 
13
  use RankMath\Helper;
14
+ use MyThemeShop\Helpers\Str;
15
  use MyThemeShop\Helpers\Attachment;
16
 
17
  defined( 'ABSPATH' ) || exit;
includes/modules/woocommerce/class-woocommerce.php CHANGED
@@ -78,7 +78,6 @@ class WooCommerce extends WC_Vars {
78
  if ( is_admin() ) {
79
  return;
80
  }
81
-
82
  // Permalink Manager.
83
  if ( $this->remove_product_base || $this->remove_category_base || $this->remove_parent_slugs ) {
84
  $this->action( 'request', 'request' );
@@ -138,6 +137,8 @@ class WooCommerce extends WC_Vars {
138
 
139
  return $replace;
140
  }
 
 
141
  }
142
 
143
  /**
78
  if ( is_admin() ) {
79
  return;
80
  }
 
81
  // Permalink Manager.
82
  if ( $this->remove_product_base || $this->remove_category_base || $this->remove_parent_slugs ) {
83
  $this->action( 'request', 'request' );
137
 
138
  return $replace;
139
  }
140
+
141
+ return $request;
142
  }
143
 
144
  /**
rank-math.php CHANGED
@@ -9,7 +9,7 @@
9
  *
10
  * @wordpress-plugin
11
  * Plugin Name: Rank Math SEO
12
- * Version: 1.0.32
13
  * Plugin URI: https://s.rankmath.com/home
14
  * Description: Rank Math is a revolutionary SEO product that combines the features of many SEO tools and lets you multiply your traffic in the easiest way possible.
15
  * Author: Rank Math
@@ -34,7 +34,7 @@ final class RankMath {
34
  *
35
  * @var string
36
  */
37
- public $version = '1.0.32';
38
 
39
  /**
40
  * Rank Math database version.
9
  *
10
  * @wordpress-plugin
11
  * Plugin Name: Rank Math SEO
12
+ * Version: 1.0.32.1
13
  * Plugin URI: https://s.rankmath.com/home
14
  * Description: Rank Math is a revolutionary SEO product that combines the features of many SEO tools and lets you multiply your traffic in the easiest way possible.
15
  * Author: Rank Math
34
  *
35
  * @var string
36
  */
37
+ public $version = '1.0.32.1';
38
 
39
  /**
40
  * Rank Math database version.
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: seo, sitemap, google search console, schema, redirection
5
  Tested up to: 5.2.2
6
  Requires at least: 4.7.0
7
  Requires PHP: 5.6
8
- Stable tag: 1.0.32
9
  License: GPL-2.0+
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.txt
11
 
@@ -469,4 +469,8 @@ We look forward to helping you.
469
  * Fixed an issue where the auto-generated description was removing diacritics from the preview area
470
  * Fixed an issue where About Us and Contact pages were not showing in the Organization data of Schema Markup
471
 
 
 
 
 
472
  Full changelog can be found here - **[Rank Math SEO changelog](https://s.rankmath.com/changelog)**
5
  Tested up to: 5.2.2
6
  Requires at least: 4.7.0
7
  Requires PHP: 5.6
8
+ Stable tag: 1.0.32.1
9
  License: GPL-2.0+
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.txt
11
 
469
  * Fixed an issue where the auto-generated description was removing diacritics from the preview area
470
  * Fixed an issue where About Us and Contact pages were not showing in the Organization data of Schema Markup
471
 
472
+ = 1.0.32.1 [Aug 29, 2019] =
473
+ * Fixed fatal error happening on some WooCommerce installations
474
+ * Fixed WooCommerce redirection issue on some installations
475
+
476
  Full changelog can be found here - **[Rank Math SEO changelog](https://s.rankmath.com/changelog)**