The Post Grid - Version 3.0.3

Version Description

  • Fixed feature image not existing notice issue
Download this release

Release Info

Developer techlabpro1
Plugin Icon 128x128 The Post Grid
Version 3.0.3
Comparing to
See all releases

Code changes from version 3.0.2 to 3.0.3

Files changed (3) hide show
  1. README.txt +4 -1
  2. lib/classes/rtTPGHelper.php +1 -1
  3. the-post-grid.php +1 -1
README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: post grid, content grid, post display, post format, post view, blog display, news display, post
5
  Requires at least: 4.5
6
  Tested up to: 5.8
7
- Stable tag: 3.0.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -141,6 +141,9 @@ For any bug or suggestion please mail support@radiustheme.com
141
 
142
  == Changelog ==
143
 
 
 
 
144
  = 3.0.2 =
145
  * Fixed pagination issue
146
  * Fixed shortcode title tag issue
4
  Tags: post grid, content grid, post display, post format, post view, blog display, news display, post
5
  Requires at least: 4.5
6
  Tested up to: 5.8
7
+ Stable tag: 3.0.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
141
 
142
  == Changelog ==
143
 
144
+ = 3.0.3 =
145
+ * Fixed feature image not existing notice issue
146
+
147
  = 3.0.2 =
148
  * Fixed pagination issue
149
  * Fixed shortcode title tag issue
lib/classes/rtTPGHelper.php CHANGED
@@ -501,7 +501,7 @@ if (!class_exists('rtTPGHelper')):
501
  if ($aID = get_post_thumbnail_id($post_id)) {
502
  $image = wp_get_attachment_image($aID, $fImgSize, '', ['class' => $img_class, 'loading' => false]);
503
  $imgSrc = wp_get_attachment_image_src($aID, $fImgSize);
504
- $imgSrc = $imgSrc[0];
505
  }
506
  } else if ($mediaSource == 'first_image') {
507
  if ($img = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', get_the_content($post_id),
501
  if ($aID = get_post_thumbnail_id($post_id)) {
502
  $image = wp_get_attachment_image($aID, $fImgSize, '', ['class' => $img_class, 'loading' => false]);
503
  $imgSrc = wp_get_attachment_image_src($aID, $fImgSize);
504
+ $imgSrc = !empty($imgSrc) ? $imgSrc[0] : $imgSrc;
505
  }
506
  } else if ($mediaSource == 'first_image') {
507
  if ($img = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', get_the_content($post_id),
the-post-grid.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: http://demo.radiustheme.com/wordpress/plugins/the-post-grid/
5
  * Description: Fast & Easy way to display WordPress post in Grid, List & Isotope view ( filter by category, tag, author..) without a single line of coding.
6
  * Author: RadiusTheme
7
- * Version: 3.0.2
8
  * Text Domain: the-post-grid
9
  * Domain Path: /languages
10
  * Author URI: https://radiustheme.com/
4
  * Plugin URI: http://demo.radiustheme.com/wordpress/plugins/the-post-grid/
5
  * Description: Fast & Easy way to display WordPress post in Grid, List & Isotope view ( filter by category, tag, author..) without a single line of coding.
6
  * Author: RadiusTheme
7
+ * Version: 3.0.3
8
  * Text Domain: the-post-grid
9
  * Domain Path: /languages
10
  * Author URI: https://radiustheme.com/