Unique Headers - Version 1.7.12

Version Description

  • Bug fix for when no object set in Unique_Headers_Taxonomy_Header_Images::modify_header_image_data()
Download this release

Release Info

Developer ryanhellyer
Plugin Icon wp plugin Unique Headers
Version 1.7.12
Comparing to
See all releases

Code changes from version 1.7.11 to 1.7.12

assets/admin.css CHANGED
File without changes
assets/admin.js CHANGED
File without changes
inc/class-dotorg-plugin-review.php CHANGED
File without changes
inc/class-unique-headers-core.php CHANGED
File without changes
inc/class-unique-headers-display.php CHANGED
File without changes
inc/class-unique-headers-instantiate.php CHANGED
File without changes
inc/class-unique-headers-taxonomy-header-images.php CHANGED
@@ -368,13 +368,15 @@ class Unique_Headers_Taxonomy_Header_Images extends Unique_Headers_Core {
368
  if ( is_numeric( $attachment_id ) ) {
369
 
370
  // Create object
371
- if ( null == $data ) {
372
  $data = (object) null;
373
  }
374
 
375
- $data->attachment_id = $attachment_id;
376
- $data->width = Custom_Image_Meta_Box::get_attachment_dimensions( $attachment_id, 'width' );
377
- $data->height = Custom_Image_Meta_Box::get_attachment_dimensions( $attachment_id, 'height' );
 
 
378
 
379
  }
380
 
368
  if ( is_numeric( $attachment_id ) ) {
369
 
370
  // Create object
371
+ if ( null == $data || empty( $data ) ) {
372
  $data = (object) null;
373
  }
374
 
375
+ if ( is_object ( $data ) ) {
376
+ $data->attachment_id = $attachment_id;
377
+ $data->width = Custom_Image_Meta_Box::get_attachment_dimensions( $attachment_id, 'width' );
378
+ $data->height = Custom_Image_Meta_Box::get_attachment_dimensions( $attachment_id, 'height' );
379
+ }
380
 
381
  }
382
 
inc/legacy.php CHANGED
File without changes
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Unique Headers
4
  Plugin URI: https://geek.hellyer.kiwi/plugins/unique-headers/
5
  Description: Unique Headers
6
- Version: 1.7.11
7
  Author: Ryan Hellyer
8
  Author URI: https://geek.hellyer.kiwi/
9
  Text Domain: unique-headers
3
  Plugin Name: Unique Headers
4
  Plugin URI: https://geek.hellyer.kiwi/plugins/unique-headers/
5
  Description: Unique Headers
6
+ Version: 1.7.12
7
  Author: Ryan Hellyer
8
  Author URI: https://geek.hellyer.kiwi/
9
  Text Domain: unique-headers
languages/unique-headers-de_DE.mo CHANGED
File without changes
languages/unique-headers-de_DE.po CHANGED
File without changes
languages/unique-headers-es_ES.mo CHANGED
File without changes
languages/unique-headers-es_ES.po CHANGED
File without changes
languages/unique-headers-fr_FR.mo CHANGED
File without changes
languages/unique-headers-fr_FR.po CHANGED
File without changes
languages/unique-headers-sv_SE.mo CHANGED
File without changes
languages/unique-headers-sv_SE.po CHANGED
File without changes
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: ryanhellyer
3
  Tags: custom-header, header, headers, images, page, post, plugin, image, images, categories, gallery, media, header-image, header-images, taxonomy, tag, category, posts, pages, taxonomies, post, page, unique, custom
4
  Donate link: https://geek.hellyer.kiwi/donate/
5
- Requires at least: 4.8
6
- Tested up to: 4.9
7
- Stable tag: 1.7.11
8
 
9
 
10
 
@@ -92,6 +92,9 @@ Yes. Just send me a message via <a href="https://ryan.hellyer.kiwi/contact/">my
92
 
93
  == Changelog ==
94
 
 
 
 
95
  = 1.7.11 =
96
  * Version bump to force dot org update
97
 
2
  Contributors: ryanhellyer
3
  Tags: custom-header, header, headers, images, page, post, plugin, image, images, categories, gallery, media, header-image, header-images, taxonomy, tag, category, posts, pages, taxonomies, post, page, unique, custom
4
  Donate link: https://geek.hellyer.kiwi/donate/
5
+ Requires at least: 4.3
6
+ Tested up to: 5.0
7
+ Stable tag: 1.7.12
8
 
9
 
10
 
92
 
93
  == Changelog ==
94
 
95
+ = 1.7.12 =
96
+ * Bug fix for when no object set in Unique_Headers_Taxonomy_Header_Images::modify_header_image_data()
97
+
98
  = 1.7.11 =
99
  * Version bump to force dot org update
100