From: Laury GvR Date: Thu, 11 Jan 2018 21:14:22 +0000 (-0500) Subject: Added check for numeric image data on member featured images X-Git-Tag: v1.0.0^2~7 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=a22d87a8b7019c47e2a083c7b5f8cede5307adb7;p=WP-Themes%2Fvisitescanaba.git Added check for numeric image data on member featured images --- 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; "';