Version Description
- Correctly checking for presence of object before setting width and height
Download this release
Release Info
Developer | ryanhellyer |
Plugin | Unique Headers |
Version | 1.7.10 |
Comparing to | |
See all releases |
Code changes from version 1.7.9 to 1.7.10
- inc/class-unique-headers-display.php +1 -1
- index.php +1 -1
- readme.txt +3 -0
inc/class-unique-headers-display.php
CHANGED
@@ -111,7 +111,7 @@ class Unique_Headers_Display extends Unique_Headers_Core {
|
|
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' );
|
111 |
$data = (object) null;
|
112 |
}
|
113 |
|
114 |
+
if ( is_object( $data ) ) {
|
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' );
|
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.
|
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.10
|
7 |
Author: Ryan Hellyer
|
8 |
Author URI: https://geek.hellyer.kiwi/
|
9 |
Text Domain: unique-headers
|
readme.txt
CHANGED
@@ -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.9 =
|
96 |
* Checking for presence of object before setting width and height
|
97 |
|
92 |
|
93 |
== Changelog ==
|
94 |
|
95 |
+
= 1.7.10 =
|
96 |
+
* Correctly checking for presence of object before setting width and height
|
97 |
+
|
98 |
= 1.7.9 =
|
99 |
* Checking for presence of object before setting width and height
|
100 |
|