updated theme Twenty Nineteen version 3.3
This commit is contained in:
@ -11,7 +11,16 @@
|
||||
* Determines if post thumbnail can be displayed.
|
||||
*/
|
||||
function twentynineteen_can_show_post_thumbnail() {
|
||||
return apply_filters( 'twentynineteen_can_show_post_thumbnail', ! post_password_required() && ! is_attachment() && has_post_thumbnail() );
|
||||
$show_post_thumbnail = ! post_password_required() && ! is_attachment() && has_post_thumbnail();
|
||||
|
||||
/**
|
||||
* Filters whether to show post thumbnail.
|
||||
*
|
||||
* @since Twenty Nineteen 1.0
|
||||
*
|
||||
* @param bool $show_post_thumbnail Whether to show post thumbnail.
|
||||
*/
|
||||
return apply_filters( 'twentynineteen_can_show_post_thumbnail', $show_post_thumbnail );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user