Version Description
- Fixing filter bug
Download this release
Release Info
Developer | ryanhellyer |
Plugin | Unique Headers |
Version | 1.7.8 |
Comparing to | |
See all releases |
Code changes from version 1.7.7 to 1.7.8
- README.md +0 -3
- inc/class-unique-headers-core.php +6 -4
- index.php +1 -1
- readme.txt +5 -2
README.md
DELETED
@@ -1,3 +0,0 @@
|
|
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,10 +27,12 @@ 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 |
}
|
35 |
|
36 |
// 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 (
|
31 |
+
! isset( get_custom_header()->attachment_id )
|
32 |
+
||
|
33 |
+
$attachment_id != get_custom_header()->attachment_id
|
34 |
+
) {
|
35 |
+
return $srcset;
|
36 |
}
|
37 |
|
38 |
// Changing each URL within the set
|
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.8
|
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,8 +92,11 @@ Yes. Just send me a message via <a href="https://ryan.hellyer.kiwi/contact/">my
|
|
92 |
|
93 |
== Changelog ==
|
94 |
|
|
|
|
|
|
|
95 |
= 1.7.7 =
|
96 |
-
* Fixing bug
|
97 |
|
98 |
= 1.7.6 =
|
99 |
* Fixing bug in taxonomy setup
|
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 |
|
93 |
== Changelog ==
|
94 |
|
95 |
+
= 1.7.8 =
|
96 |
+
* Fixing filter bug
|
97 |
+
|
98 |
= 1.7.7 =
|
99 |
+
* Fixing filter bug
|
100 |
|
101 |
= 1.7.6 =
|
102 |
* Fixing bug in taxonomy setup
|