Changeset 61062
- Timestamp:
- 10/25/2025 10:50:46 PM (3 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentynineteen/inc/helper-functions.php
r59090 r61062 12 12 */ 13 13 function twentynineteen_can_show_post_thumbnail() { 14 return apply_filters( 'twentynineteen_can_show_post_thumbnail', ! post_password_required() && ! is_attachment() && has_post_thumbnail() ); 14 $show_post_thumbnail = ! post_password_required() && ! is_attachment() && has_post_thumbnail(); 15 16 /** 17 * Filters whether to show post thumbnail. 18 * 19 * @since Twenty Nineteen 1.0 20 * 21 * @param bool $show_post_thumbnail Whether to show post thumbnail. 22 */ 23 return apply_filters( 'twentynineteen_can_show_post_thumbnail', $show_post_thumbnail ); 15 24 } 16 25
Note: See TracChangeset
for help on using the changeset viewer.