Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
wilson1000 committed Oct 31, 2024
1 parent f4dfd9d commit 49f2d61
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
*/

// Parse template args.
$show_excerpt = isset($args['show_excerpt']) ? $args['show_excerpt'] : true;
$show_excerpt = !isset($args['show_excerpt']) || $args['show_excerpt'];

$id = $post->ID;
$thumbnail = get_the_post_thumbnail_url($id, 'user-thumb');
$thumbnail_alt = get_post_meta(get_post_thumbnail_id($id), '_wp_attachment_image_alt', true);
$link = get_the_permalink($post->ID);

// This component sometimes requires `$set_cpt` depending where this component gets called.
// This component sometimes requires `$set_cpt` depending on where this component gets called.
if (! isset($set_cpt)) {
$set_cpt = '';
}
Expand Down

0 comments on commit 49f2d61

Please sign in to comment.