mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-19 14:33:32 +09:00
Merge branch 'feature/images-id' of https://github.com/robincornett/display-featured-image-genesis into feature/images-id
This commit is contained in:
@@ -220,6 +220,11 @@ class Display_Featured_Image_Genesis_Common {
|
||||
global $wpdb;
|
||||
$attachment_id = false;
|
||||
|
||||
// as of 2.2.0, if a (new) image id is passed to the function, return it as is.
|
||||
if ( is_int( $attachment_url ) ) {
|
||||
return $attachment_url;
|
||||
}
|
||||
|
||||
// If there is no url, return.
|
||||
if ( '' == $attachment_url ) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user