From aad3f1c428757a9da0f9cfa88a95d47eeced8434 Mon Sep 17 00:00:00 2001 From: savvasha Date: Fri, 23 Aug 2019 19:35:25 +0300 Subject: [PATCH] FIX: Title attribute is not populated for images (statistics and performances) --- includes/sp-api-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/sp-api-functions.php b/includes/sp-api-functions.php index e7f1f260..e4d6161a 100644 --- a/includes/sp-api-functions.php +++ b/includes/sp-api-functions.php @@ -178,7 +178,7 @@ function sp_get_performance( $post = 0 ) { function sp_get_singular_name( $post = 0 ) { $singular = get_post_meta( $post, 'sp_singular', true ); - if ( '' !== $singular ) { + if ( $singular && '' !== $singular ) { return $singular; } else { return get_the_title( $post );