From a22d87a8b7019c47e2a083c7b5f8cede5307adb7 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 11 Jan 2018 16:14:22 -0500 Subject: [PATCH] Added check for numeric image data on member featured images --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 799f340..c4492e2 100644 --- a/functions.php +++ b/functions.php @@ -83,7 +83,7 @@ function glm_get_header($memberID = false) { } else { $image_data = apply_filters('member_images',$memberID,true); } - if (empty($image_data)) { + if (empty($image_data) || is_numeric($image_data)) { echo ' style="background-image: url('.get_template_directory_uri().'/assets/default.jpg);height:0;padding:0;padding-bottom:22%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 420px; "'; } else { echo ' style="background-image: url('.$image_data.');height:0;padding:0;padding-bottom:22%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 420px; "'; -- 2.17.1