Unique Headers - Version 1.8.2

Version Description

  • Bug fix for when array value doesn't exist
Download this release

Release Info

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

Code changes from version 1.8.1 to 1.8.2

Files changed (3) hide show
  1. inc/class-custom-image-meta-box.php +2 -2
  2. index.php +1 -1
  3. readme.txt +5 -2
inc/class-custom-image-meta-box.php CHANGED
@@ -160,9 +160,9 @@ class Custom_Image_Meta_Box {
160
  // Grab URL from WordPress
161
  $data = wp_get_attachment_image_src( $attachment_id, 'full' );
162
 
163
- if ( 'width' == $dimension ) {
164
  return $data[1];
165
- } else if ( 'height' == $dimension ) {
166
  return $data[2];
167
  }
168
 
160
  // Grab URL from WordPress
161
  $data = wp_get_attachment_image_src( $attachment_id, 'full' );
162
 
163
+ if ( 'width' == $dimension && isset( $data[1] ) ) {
164
  return $data[1];
165
+ } else if ( 'height' == $dimension && isset( $data[2] ) ) {
166
  return $data[2];
167
  }
168
 
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.8.1
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.8.2
7
  Author: Ryan Hellyer
8
  Author URI: https://geek.hellyer.kiwi/
9
  Text Domain: unique-headers
readme.txt CHANGED
@@ -3,8 +3,8 @@ 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.9.9
7
- Stable tag: 1.8.1
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.8.1 =
96
  * Bug fix for offset value error
97
 
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: 6.1
7
+ Stable tag: 1.8.2
8
 
9
 
10
 
92
 
93
  == Changelog ==
94
 
95
+ = 1.8.2 =
96
+ * Bug fix for when array value doesn't exist
97
+
98
  = 1.8.1 =
99
  * Bug fix for offset value error
100