WordPress SEO Plugin – Rank Math - Version 1.0.66.1

Version Description

[Jun 18, 2021] = * Fixed: Missing @type in the default schema * Fixed: Warning shown in the Social Preview tab on some setups

Download this release

Release Info

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

Code changes from version 1.0.66 to 1.0.66.1

includes/metaboxes/social-preview.php CHANGED
@@ -30,7 +30,7 @@ if ( Admin_Helper::is_post_edit() ) {
30
  $fb_thumbnail = $fb_thumbnail ? absint( $fb_thumbnail ) : $thumbnail;
31
  if ( ! is_string( $fb_thumbnail ) ) {
32
  $image_src = wp_get_attachment_image_src( $fb_thumbnail, 'full' );
33
- $fb_thumbnail = $image_src[0];
34
  }
35
 
36
  // Twitter Image.
@@ -47,11 +47,11 @@ if ( Admin_Helper::is_post_edit() ) {
47
  $tw_thumbnail = $tw_thumbnail ? absint( $tw_thumbnail ) : $thumbnail;
48
  if ( ! is_string( $tw_thumbnail ) ) {
49
  $image_src = wp_get_attachment_image_src( $tw_thumbnail, 'full' );
50
- $tw_thumbnail = $image_src[0];
51
  }
52
 
53
  // Publisher URL.
54
- $publisher_url = str_replace( array( 'http://', 'https://' ), '', get_bloginfo( 'url' ) );
55
  $publisher_url = explode( '/', $publisher_url );
56
  $publisher_url = isset( $publisher_url[0] ) ? $publisher_url[0] : '';
57
 
30
  $fb_thumbnail = $fb_thumbnail ? absint( $fb_thumbnail ) : $thumbnail;
31
  if ( ! is_string( $fb_thumbnail ) ) {
32
  $image_src = wp_get_attachment_image_src( $fb_thumbnail, 'full' );
33
+ $fb_thumbnail = is_array( $image_src ) && ! empty( $image_src[0] ) ? $image_src[0] : '';
34
  }
35
 
36
  // Twitter Image.
47
  $tw_thumbnail = $tw_thumbnail ? absint( $tw_thumbnail ) : $thumbnail;
48
  if ( ! is_string( $tw_thumbnail ) ) {
49
  $image_src = wp_get_attachment_image_src( $tw_thumbnail, 'full' );
50
+ $tw_thumbnail = is_array( $image_src ) && ! empty( $image_src[0] ) ? $image_src[0] : '';
51
  }
52
 
53
  // Publisher URL.
54
+ $publisher_url = str_replace( [ 'http://', 'https://' ], '', get_bloginfo( 'url' ) );
55
  $publisher_url = explode( '/', $publisher_url );
56
  $publisher_url = isset( $publisher_url[0] ) ? $publisher_url[0] : '';
57
 
includes/modules/schema/snippets/class-article.php CHANGED
@@ -32,7 +32,7 @@ class Article implements Snippet {
32
  */
33
  public function process( $data, $jsonld ) {
34
  $entity = [
35
- '@type' => Helper::get_default_schema_type( $jsonld->post->post_type ),
36
  'headline' => $jsonld->parts['title'],
37
  'datePublished' => $jsonld->parts['published'],
38
  'dateModified' => $jsonld->parts['modified'],
32
  */
33
  public function process( $data, $jsonld ) {
34
  $entity = [
35
+ '@type' => Helper::get_default_schema_type( $jsonld->post->ID ),
36
  'headline' => $jsonld->parts['title'],
37
  'datePublished' => $jsonld->parts['published'],
38
  'dateModified' => $jsonld->parts['modified'],
rank-math.php CHANGED
@@ -9,7 +9,7 @@
9
  *
10
  * @wordpress-plugin
11
  * Plugin Name: Rank Math SEO
12
- * Version: 1.0.66
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.66';
38
 
39
  /**
40
  * Rank Math database version.
9
  *
10
  * @wordpress-plugin
11
  * Plugin Name: Rank Math SEO
12
+ * Version: 1.0.66.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.66.1';
38
 
39
  /**
40
  * Rank Math database version.
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: seo, sitemap, google search console, schema, redirection, WordPress SEO
5
  Tested up to: 5.7
6
  Requires at least: 5.6
7
  Requires PHP: 7.2
8
- Stable tag: 1.0.66
9
  License: GPL-2.0+
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.txt
11
 
@@ -565,6 +565,10 @@ Please drop us an email at support@rankmath.com and we would be more than happy
565
 
566
  == Changelog ==
567
 
 
 
 
 
568
  = 1.0.66 [Jun 16, 2021] =
569
  * Improved: [HUGE!] Made several *significant code improvements* that have made the plugin even FASTER. Now, Rank Math is one of the most *[FASTEST SEO PLUGINS](https://rankmath.com/)*.
570
  * Added: New Database Tool to remove the old [Schema](https://rankmath.com/blog/schema-markup/) code from the database. The plugin is not using that data anymore after introducing the revamped [Schema Generator](https://rankmath.com/kb/schema-generator/) in version 1.0.48
@@ -579,4 +583,4 @@ Please drop us an email at support@rankmath.com and we would be more than happy
579
  * Fixed: Incorrect display of single post URL in the Single Post [Analytics reports](https://rankmath.com/kb/analytics/) if WordPress was installed in the subfolder. This was visible only to the admins and did not impact anything on the frontend
580
  * Fixed: Added missing condition to check if [WooCommerce](https://rankmath.com/blog/woocommerce-seo/) function exists in [breadcrumbs](https://rankmath.com/kb/breadcrumbs/)
581
 
582
- Full changelog can be found here - **[Rank Math SEO changelog](https://rankmath.com/changelog/?utm_source=Plugin&utm_medium=Changelog&utm_campaign=WP)**
5
  Tested up to: 5.7
6
  Requires at least: 5.6
7
  Requires PHP: 7.2
8
+ Stable tag: 1.0.66.1
9
  License: GPL-2.0+
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.txt
11
 
565
 
566
  == Changelog ==
567
 
568
+ = 1.0.66.1 [Jun 18, 2021] =
569
+ * Fixed: Missing `@type` in the default schema
570
+ * Fixed: Warning shown in the Social Preview tab on some setups
571
+
572
  = 1.0.66 [Jun 16, 2021] =
573
  * Improved: [HUGE!] Made several *significant code improvements* that have made the plugin even FASTER. Now, Rank Math is one of the most *[FASTEST SEO PLUGINS](https://rankmath.com/)*.
574
  * Added: New Database Tool to remove the old [Schema](https://rankmath.com/blog/schema-markup/) code from the database. The plugin is not using that data anymore after introducing the revamped [Schema Generator](https://rankmath.com/kb/schema-generator/) in version 1.0.48
583
  * Fixed: Incorrect display of single post URL in the Single Post [Analytics reports](https://rankmath.com/kb/analytics/) if WordPress was installed in the subfolder. This was visible only to the admins and did not impact anything on the frontend
584
  * Fixed: Added missing condition to check if [WooCommerce](https://rankmath.com/blog/woocommerce-seo/) function exists in [breadcrumbs](https://rankmath.com/kb/breadcrumbs/)
585
 
586
+ Full changelog can be found here - **[Rank Math SEO changelog](https://rankmath.com/changelog/?utm_source=Plugin&utm_medium=Changelog&utm_campaign=WP)**