FIX: Title attribute is not populated for images (statistics and performances)

This commit is contained in:
savvasha
2019-08-23 19:35:25 +03:00
parent 518f235832
commit aad3f1c428

View File

@@ -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 );