mirror of
https://github.com/10h30/trestle.git
synced 2026-07-13 19:56:20 +09:00
Added filter to remove Genesis default image fallback of first-attached.
This commit is contained in:
@@ -261,6 +261,23 @@ function trestle_post_info_meta() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unset Genesis default featured image fallback of 'first-attached'
|
||||
*
|
||||
* This function prevents Genesis' default behavior of displaying
|
||||
* the 'first-attached' image as a post's featured image (in archive)
|
||||
* views, even when the post has no current featured image.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @param array $args Default Genesis image args
|
||||
* @return array Updated image args
|
||||
*/
|
||||
function trestle_featured_image_fallback( $args ) {
|
||||
$args['fallback'] = false;
|
||||
return $args;
|
||||
}
|
||||
|
||||
|
||||
/*===========================================
|
||||
* General Actions & Filters
|
||||
|
||||
Reference in New Issue
Block a user