Unique Headers - Version 1.7.4

Version Description

  • Fixing bug in taxonomy setup
Download this release

Release Info

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

Code changes from version 1.7.3 to 1.7.4

inc/class-unique-headers-instantiate.php CHANGED
@@ -72,7 +72,7 @@ class Unique_Headers_Instantiate {
72
  // Add upload text
73
  $args['upload_header_image'] = __( 'Upload header image', 'unique-headers' );
74
 
75
- // new Unique_Headers_Taxonomy_Header_Images( $args );
76
  }
77
 
78
  }
72
  // Add upload text
73
  $args['upload_header_image'] = __( 'Upload header image', 'unique-headers' );
74
 
75
+ new Unique_Headers_Taxonomy_Header_Images( $args );
76
  }
77
 
78
  }
inc/class-unique-headers-taxonomy-header-images.php CHANGED
@@ -342,7 +342,7 @@ class Unique_Headers_Taxonomy_Header_Images extends Unique_Headers_Core {
342
  /**
343
  * Modify the header image data.
344
  * Required to make TwentySixteen work.
345
- * This is a replica of the method in Unique_Headers_Display().
346
  *
347
  * @param array $data The data
348
  * @return array The modified data with new attachment ID
@@ -350,7 +350,7 @@ class Unique_Headers_Taxonomy_Header_Images extends Unique_Headers_Core {
350
  public function modify_header_image_data( $data ) {
351
 
352
  // Bail out now if not in post (is_single or is_page) or blog (is_home)
353
- if ( ! is_single() && ! is_page() && ! is_home() ) {
354
  return $data;
355
  }
356
 
@@ -377,7 +377,7 @@ class Unique_Headers_Taxonomy_Header_Images extends Unique_Headers_Core {
377
  $data->height = Custom_Image_Meta_Box::get_attachment_dimensions( $attachment_id, 'height' );
378
 
379
  }
380
-
381
  return $data;
382
  }
383
 
342
  /**
343
  * Modify the header image data.
344
  * Required to make TwentySixteen work.
345
+ * This is similar to the method in Unique_Headers_Display().
346
  *
347
  * @param array $data The data
348
  * @return array The modified data with new attachment ID
350
  public function modify_header_image_data( $data ) {
351
 
352
  // Bail out now if not in post (is_single or is_page) or blog (is_home)
353
+ if ( ! is_tax() ) {
354
  return $data;
355
  }
356
 
377
  $data->height = Custom_Image_Meta_Box::get_attachment_dimensions( $attachment_id, 'height' );
378
 
379
  }
380
+
381
  return $data;
382
  }
383
 
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.3
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.4
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.3
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.3 =
96
  * Bug fix for srcset with taxonomies
97
  * Changed to class autoloader
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.4
8
 
9
 
10
 
92
 
93
  == Changelog ==
94
 
95
+ = 1.7.4 =
96
+ * Fixing bug in taxonomy setup
97
+
98
  = 1.7.3 =
99
  * Bug fix for srcset with taxonomies
100
  * Changed to class autoloader