Unique Headers - Version 1.7.9

Version Description

  • Checking for presence of object before setting width and height
Download this release

Release Info

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

Code changes from version 1.7.8 to 1.7.9

Files changed (3) hide show
  1. inc/class-unique-headers-display.php +5 -3
  2. index.php +1 -1
  3. readme.txt +4 -1
inc/class-unique-headers-display.php CHANGED
@@ -111,9 +111,11 @@ class Unique_Headers_Display extends Unique_Headers_Core {
111
  $data = (object) null;
112
  }
113
 
114
- $data->attachment_id = $attachment_id;
115
- $data->width = Custom_Image_Meta_Box::get_attachment_dimensions( $attachment_id, 'width' );
116
- $data->height = Custom_Image_Meta_Box::get_attachment_dimensions( $attachment_id, 'height' );
 
 
117
 
118
  }
119
 
111
  $data = (object) null;
112
  }
113
 
114
+ if ( is_object() ) {
115
+ $data->attachment_id = $attachment_id;
116
+ $data->width = Custom_Image_Meta_Box::get_attachment_dimensions( $attachment_id, 'width' );
117
+ $data->height = Custom_Image_Meta_Box::get_attachment_dimensions( $attachment_id, 'height' );
118
+ }
119
 
120
  }
121
 
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.8
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.9
7
  Author: Ryan Hellyer
8
  Author URI: https://geek.hellyer.kiwi/
9
  Text Domain: unique-headers
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: custom-header, header, headers, images, page, post, plugin, image, images,
4
  Donate link: https://geek.hellyer.kiwi/donate/
5
  Requires at least: 4.3
6
  Tested up to: 4.8
7
- Stable tag: 1.7.8
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.8 =
96
  * Fixing filter bug
97
 
4
  Donate link: https://geek.hellyer.kiwi/donate/
5
  Requires at least: 4.3
6
  Tested up to: 4.8
7
+ Stable tag: 1.7.9
8
 
9
 
10
 
92
 
93
  == Changelog ==
94
 
95
+ = 1.7.9 =
96
+ * Checking for presence of object before setting width and height
97
+
98
  = 1.7.8 =
99
  * Fixing filter bug
100