Version Description
- Bug fix for offset value error
Download this release
Release Info
Developer | ryanhellyer |
Plugin | Unique Headers |
Version | 1.8.1 |
Comparing to | |
See all releases |
Code changes from version 1.8 to 1.8.1
- inc/class-custom-image-meta-box.php +5 -2
- index.php +1 -1
- readme.txt +5 -2
inc/class-custom-image-meta-box.php
CHANGED
@@ -136,10 +136,13 @@ class Custom_Image_Meta_Box {
|
|
136 |
* @return string
|
137 |
*/
|
138 |
static function get_attachment_src( $attachment_id ) {
|
|
|
139 |
|
140 |
// Grab URL from WordPress
|
141 |
-
$
|
142 |
-
|
|
|
|
|
143 |
|
144 |
return $url;
|
145 |
}
|
136 |
* @return string
|
137 |
*/
|
138 |
static function get_attachment_src( $attachment_id ) {
|
139 |
+
$url = '';
|
140 |
|
141 |
// Grab URL from WordPress
|
142 |
+
$src = wp_get_attachment_image_src( $attachment_id, 'full' );
|
143 |
+
if ( isset( $src[0] ) ) {
|
144 |
+
$url = $src[0];
|
145 |
+
}
|
146 |
|
147 |
return $url;
|
148 |
}
|
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
|
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.1
|
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.
|
7 |
-
Stable tag: 1.8
|
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 =
|
96 |
* Bug fix for "WP_Scripts::localize was called" notice
|
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: 5.9.9
|
7 |
+
Stable tag: 1.8.1
|
8 |
|
9 |
|
10 |
|
92 |
|
93 |
== Changelog ==
|
94 |
|
95 |
+
= 1.8.1 =
|
96 |
+
* Bug fix for offset value error
|
97 |
+
|
98 |
= 1.8 =
|
99 |
* Bug fix for "WP_Scripts::localize was called" notice
|
100 |
|