Quick Featured Images - Version 13.4.1

Version Description

  • Fixed error in image columns on post overview pages
Download this release

Release Info

Developer Hinjiriyo
Plugin Icon 128x128 Quick Featured Images
Version 13.4.1
Comparing to
See all releases

Code changes from version 13.4.0 to 13.4.1

README.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: featured image,featured images,bulk set,automatic,thumbnails
5
  Requires at least: 3.8
6
  Requires PHP: 5.2
7
- Tested up to: 5.3.2
8
- Stable tag: 13.4.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -290,6 +290,9 @@ If you want to contribute a translation of the plugin in your language it would
290
 
291
  == Changelog ==
292
 
 
 
 
293
  = 13.4.0 =
294
  * Added new column in the media library to list at each image for which posts it is set as featured image
295
  * Refactored user query for 'Default Images'
@@ -517,6 +520,9 @@ Added spanish translation for the main texts of the plugin
517
 
518
  == Upgrade Notice ==
519
 
 
 
 
520
  = 13.4.0 =
521
  Added new column in the media library to list at each image for which posts it is set as featured image, tested with WordPress 5.3.2
522
 
4
  Tags: featured image,featured images,bulk set,automatic,thumbnails
5
  Requires at least: 3.8
6
  Requires PHP: 5.2
7
+ Tested up to: 5.4
8
+ Stable tag: 13.4.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
290
 
291
  == Changelog ==
292
 
293
+ = 13.4.1 =
294
+ * Fixed error in image columns on post overview pages
295
+
296
  = 13.4.0 =
297
  * Added new column in the media library to list at each image for which posts it is set as featured image
298
  * Refactored user query for 'Default Images'
520
 
521
  == Upgrade Notice ==
522
 
523
+ = 13.4.1 =
524
+ Fixed error in image columns on post overview pages
525
+
526
  = 13.4.0 =
527
  Added new column in the media library to list at each image for which posts it is set as featured image, tested with WordPress 5.3.2
528
 
admin/class-quick-featured-images-admin.php CHANGED
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
21
  *
22
  * @var string
23
  */
24
- protected $plugin_version = '13.4.0';
25
 
26
  /**
27
  * Instance of this class.
21
  *
22
  * @var string
23
  */
24
+ protected $plugin_version = '13.4.1';
25
 
26
  /**
27
  * Instance of this class.
admin/class-quick-featured-images-columns.php CHANGED
@@ -376,45 +376,8 @@ class Quick_Featured_Images_Columns {
376
  * @return array extended list of columns
377
  */
378
  public function display_thumbnail_in_column( $column_name, $post_id ) {
379
- if ( $this->thumbnail_column_name !== $column_name ) {
380
- return;
381
- }
382
  $width = $height = $this->used_thumbnail_width;
383
- // check if any plugin for external featured images exists and use it, else use the WP standard featured image
384
- $thumbnail_url = '';
385
- $thumbnail_alt = '';
386
- if ( $this->is_knawatfibu ) {
387
- $thumbnail_url = get_post_meta( $post_id, '_knawatfibu_url', true );
388
- $thumbnail_alt = get_post_meta( $post_id, '_knawatfibu_alt', true );
389
- } elseif( $this->is_fifu ) {
390
- $thumbnail_url = fifu_main_image_url( $post_id );
391
- /*if ( empty( $url ) ) {
392
- $thumbnail_url = get_the_guid( get_post_thumbnail_id( $post_id ) );
393
- }*/
394
- }
395
- if ( $thumbnail_url ) {
396
- $sanitized_url = esc_url( $thumbnail_url , array( 'http', 'https' ) );
397
- // if not yet cached, create thumbnail HTML code and store it in the cache
398
- if ( empty( $this->thumbnail_cache[ $sanitized_url ] ) ) {
399
- // get thumbnail HTML for the external image
400
- $thumbnail_size = false;
401
- // get the image dimensions; returns false if no such file, else an array
402
- $thumbnail_size = @getimagesize( $sanitized_url );
403
- if ( $thumbnail_size ) {
404
- // finally all data are available; store HTML code in the cache
405
- $this->thumbnail_cache[ $sanitized_url ] = $this->get_html_external_thumbnail(
406
- $sanitized_url,
407
- esc_attr( $thumbnail_alt ),
408
- $thumbnail_size
409
- );
410
- } else {
411
- // use error symbol
412
- $this->thumbnail_cache[ $sanitized_url ] = $this->thumbnail_cache[ 'Invalid image URL' ];
413
- } // if ( $thumbnail_size )
414
- } // if ( empty( $this->thumbnail_cache[ $sanitized_url ] ) )
415
- // print thumbnail HTML code
416
- echo $this->thumbnail_cache[ $sanitized_url ];
417
- } else {
418
  $thumbnail_id = get_post_thumbnail_id( $post_id );
419
  // check if image file exists, omit filters in get_attached_file() ('true')
420
  if ( $thumbnail_id ) {
376
  * @return array extended list of columns
377
  */
378
  public function display_thumbnail_in_column( $column_name, $post_id ) {
 
 
 
379
  $width = $height = $this->used_thumbnail_width;
380
+ if ( $this->thumbnail_column_name == $column_name ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
381
  $thumbnail_id = get_post_thumbnail_id( $post_id );
382
  // check if image file exists, omit filters in get_attached_file() ('true')
383
  if ( $thumbnail_id ) {
quick-featured-images.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: Quick Featured Images
11
  * Plugin URI: http://wordpress.org/plugins/quick-featured-images
12
  * Description: Your time-saving Swiss Army Knife for featured images: Set, replace and delete them in bulk, in posts lists and set default images for future posts.
13
- * Version: 13.4.0
14
  * Author: Martin Stehle
15
  * Author URI: http://stehle-internet.de
16
  * Text Domain: quick-featured-images
10
  * Plugin Name: Quick Featured Images
11
  * Plugin URI: http://wordpress.org/plugins/quick-featured-images
12
  * Description: Your time-saving Swiss Army Knife for featured images: Set, replace and delete them in bulk, in posts lists and set default images for future posts.
13
+ * Version: 13.4.1
14
  * Author: Martin Stehle
15
  * Author URI: http://stehle-internet.de
16
  * Text Domain: quick-featured-images