Adjusted glm_get_header() to break less
authorLaury GvR <laury@gaslightmedia.com>
Fri, 23 Mar 2018 16:11:05 +0000 (12:11 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 23 Mar 2018 16:11:05 +0000 (12:11 -0400)
commit534de6af2ffb37ee1869e997e42cac4e28f18f98
tree0012db15b3fadb40de9b8eb6ebb15709ded5481c
parent21554ca1bdcb5010cc2c027532a165e5efedba75
Adjusted glm_get_header() to break less

This function wasn't always doing its expected behavior. Now it
properly checks for image data failures at any step and applies
classes to the featured image based on which image it actually
displays. e.g. if it passes into member detail but fails to get an
image from the member it gets the 'member-default' class, unless
there is no default member image, in which case it gets the
'wp-default' class.
functions.php