SEO SIMPLE PACK - Version 2.2.6

Version Description

Bug fixes

Download this release

Release Info

Developer looswebstudio
Plugin Icon 128x128 SEO SIMPLE PACK
Version 2.2.6
Comparing to
See all releases

Code changes from version 2.2.5 to 2.2.6

Files changed (3) hide show
  1. class/output.php +9 -4
  2. readme.txt +4 -1
  3. seo-simple-pack.php +1 -1
class/output.php CHANGED
@@ -615,13 +615,18 @@ class SSP_Output {
615
 
616
  if ( $meta_image ) {
617
  $og_image = $meta_image;
 
618
  } elseif ( has_post_thumbnail( $the_id ) ) {
619
  $thumb_id = get_post_thumbnail_id( $the_id );
620
- $thumb_url = wp_get_attachment_image_src( $thumb_id, 'full' );
621
- $og_image = $thumb_url[0] ?: $basic_ogimg;
622
- } else {
623
- $og_image = $basic_ogimg;
 
624
  }
 
 
 
625
  break;
626
  case is_tax() || is_tag() || is_category():
627
  if ( ! isset( self::$obj->term_id ) ) break;
615
 
616
  if ( $meta_image ) {
617
  $og_image = $meta_image;
618
+ break;
619
  } elseif ( has_post_thumbnail( $the_id ) ) {
620
  $thumb_id = get_post_thumbnail_id( $the_id );
621
+ $thumb_src = wp_get_attachment_image_src( $thumb_id, 'full' );
622
+ if ( $thumb_src ) {
623
+ $og_image = $thumb_src[0] ?: $basic_ogimg;
624
+ break;
625
+ }
626
  }
627
+
628
+ // metaもアイキャッチもない時
629
+ $og_image = $basic_ogimg;
630
  break;
631
  case is_tax() || is_tag() || is_category():
632
  if ( ! isset( self::$obj->term_id ) ) break;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://loos-web-studio.com/
4
  Tags: SEO, meta, analytics, webmaster, simple, japan, meta tag
5
  Requires at least: 4.9
6
  Tested up to: 5.8
7
- Stable tag: 2.2.5
8
  Requires PHP: 7.0
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -121,6 +121,9 @@ The following hooks are available.
121
 
122
  == Changelog ==
123
 
 
 
 
124
  = 2.2.5 =
125
  Fix the canonical tag on front page.
126
 
4
  Tags: SEO, meta, analytics, webmaster, simple, japan, meta tag
5
  Requires at least: 4.9
6
  Tested up to: 5.8
7
+ Stable tag: 2.2.6
8
  Requires PHP: 7.0
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
121
 
122
  == Changelog ==
123
 
124
+ = 2.2.6 =
125
+ Bug fixes
126
+
127
  = 2.2.5 =
128
  Fix the canonical tag on front page.
129
 
seo-simple-pack.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: SEO SIMPLE PACK
4
  * Plugin URI: https://wemo.tech/1670
5
  * Description: A very simple SEO plugin. You can easily set and customize meta tags and OGP tags for each page.
6
- * Version: 2.2.5
7
  * Author: LOOS,Inc.
8
  * Author URI: https://loos-web-studio.com/
9
  * License: GPL2 or later
3
  * Plugin Name: SEO SIMPLE PACK
4
  * Plugin URI: https://wemo.tech/1670
5
  * Description: A very simple SEO plugin. You can easily set and customize meta tags and OGP tags for each page.
6
+ * Version: 2.2.6
7
  * Author: LOOS,Inc.
8
  * Author URI: https://loos-web-studio.com/
9
  * License: GPL2 or later