Version Description
- Fixing bug in taxonomy setup
Download this release
Release Info
Developer | ryanhellyer |
Plugin | Unique Headers |
Version | 1.7.7 |
Comparing to | |
See all releases |
Code changes from version 1.7.5 to 1.7.7
- README.md +3 -0
- inc/class-unique-headers-core.php +4 -2
- inc/class-unique-headers-taxonomy-header-images.php +2 -2
- index.php +1 -1
- readme.txt +7 -1
README.md
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
# Unique Headers plugin for WordPress
|
2 |
+
|
3 |
+
This is the development repository for the Unique Headers plugin for WordPress. For more information, please go to <a href="http://geek.hellyer.kiwi/plugins/unique-headers/">http://geek.hellyer.kiwi/plugins/unique-headers/</a>.
|
inc/class-unique-headers-core.php
CHANGED
@@ -27,8 +27,10 @@ class Unique_Headers_Core {
|
|
27 |
public function header_srcset_filter( $srcset, $size_array, $image_src, $image_meta, $attachment_id = 0 ) {
|
28 |
|
29 |
// Bail out if not on header ID
|
30 |
-
if (
|
31 |
-
|
|
|
|
|
32 |
}
|
33 |
|
34 |
// Changing each URL within the set
|
27 |
public function header_srcset_filter( $srcset, $size_array, $image_src, $image_meta, $attachment_id = 0 ) {
|
28 |
|
29 |
// Bail out if not on header ID
|
30 |
+
if ( isset( get_custom_header()->attachment_id ) ) {
|
31 |
+
if ( $attachment_id != get_custom_header()->attachment_id ) {
|
32 |
+
return $srcset;
|
33 |
+
}
|
34 |
}
|
35 |
|
36 |
// Changing each URL within the set
|
inc/class-unique-headers-taxonomy-header-images.php
CHANGED
@@ -349,8 +349,8 @@ class Unique_Headers_Taxonomy_Header_Images extends Unique_Headers_Core {
|
|
349 |
*/
|
350 |
public function modify_header_image_data( $data ) {
|
351 |
|
352 |
-
// Bail out now if not in
|
353 |
-
if ( ! is_tag() && ! is_tax() ) {
|
354 |
return $data;
|
355 |
}
|
356 |
|
349 |
*/
|
350 |
public function modify_header_image_data( $data ) {
|
351 |
|
352 |
+
// Bail out now if not in taxonomy archive
|
353 |
+
if ( ! is_tag() && ! is_tax() && ! is_category() ) {
|
354 |
return $data;
|
355 |
}
|
356 |
|
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.7
|
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 |
|
9 |
|
10 |
|
@@ -92,6 +92,12 @@ Yes. Just send me a message via <a href="https://ryan.hellyer.kiwi/contact/">my
|
|
92 |
|
93 |
== Changelog ==
|
94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
= 1.7.5 =
|
96 |
* Fixing bug in taxonomy setup
|
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.7
|
8 |
|
9 |
|
10 |
|
92 |
|
93 |
== Changelog ==
|
94 |
|
95 |
+
= 1.7.7 =
|
96 |
+
* Fixing bug in taxonomy setup
|
97 |
+
|
98 |
+
= 1.7.6 =
|
99 |
+
* Fixing bug in taxonomy setup
|
100 |
+
|
101 |
= 1.7.5 =
|
102 |
* Fixing bug in taxonomy setup
|
103 |
|