FIX: Title attribute is not populated for images (statistics and performances)
This commit is contained in:
@@ -178,7 +178,7 @@ function sp_get_performance( $post = 0 ) {
|
|||||||
|
|
||||||
function sp_get_singular_name( $post = 0 ) {
|
function sp_get_singular_name( $post = 0 ) {
|
||||||
$singular = get_post_meta( $post, 'sp_singular', true );
|
$singular = get_post_meta( $post, 'sp_singular', true );
|
||||||
if ( '' !== $singular ) {
|
if ( $singular && '' !== $singular ) {
|
||||||
return $singular;
|
return $singular;
|
||||||
} else {
|
} else {
|
||||||
return get_the_title( $post );
|
return get_the_title( $post );
|
||||||
|
|||||||
Reference in New Issue
Block a user