Fix default image ID helper function

This commit is contained in:
Robin Cornett
2015-05-09 10:00:14 -04:00
parent 944ed6fd6b
commit 9fcd6c7f21
5 changed files with 12 additions and 6 deletions
+3
View File
@@ -204,6 +204,9 @@ This will follow the settings you choose in the Genesis Theme Settings.
## Changelog
### 2.2.2
* fixed default image id function error
### 2.2.1
* fixed fallback filters
* escaped even more things
+1 -1
View File
@@ -12,7 +12,7 @@
* Plugin Name: Display Featured Image for Genesis
* Plugin URI: http://github.com/robincornett/display-featured-image-genesis/
* Description: This plugin works within the Genesis Framework, to display featured images in beautiful and dynamic ways.
* Version: 2.2.1
* Version: 2.2.2
* Author: Robin Cornett
* Author URI: http://robincornett.com
* License: GPL-2.0+
@@ -13,7 +13,7 @@ class Display_Featured_Image_Genesis_Common {
* @var string
* @since 1.4.3
*/
public static $version = '2.2.1';
public static $version = '2.2.2';
protected static $post_types;
+1 -1
View File
@@ -67,7 +67,7 @@ function display_featured_image_genesis_get_default_image_id() {
$fallback = $displaysetting['default'];
$image_id = $fallback;
if ( ! is_numeric( $fallback ) ) {
$image_id = self::get_image_id( $fallback ); // gets image id with attached metadata
$image_id = Display_Featured_Image_Genesis_Common::get_image_id( $fallback ); // gets image id with attached metadata
}
return absint( $image_id );
+6 -3
View File
@@ -5,7 +5,7 @@ Donate link: https://robincornett.com/donate/
Tags: backstretch, featured image, featured images, genesis, studiopress, post thumbnails, featured image rss, rss
Requires at least: 3.8
Tested up to: 4.2
Stable tag: 2.2.1
Stable tag: 2.2.2
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
@@ -162,11 +162,14 @@ This will follow the settings you choose in the Genesis Theme Settings.
3. Quickly see the featured image assigned to each post or term.
== Upgrade Notice ==
= 2.2.1 =
Bugfixes: image ID is correctly set in sequence
= 2.2.2 =
Bugfix: default image ID function
== Changelog ==
= 2.2.2 =
* fixed default image id function error
= 2.2.1 =
* fixed fallback filters
* escaped even more things