Skip to content
Snippets Groups Projects
Commit 7b1692e7 authored by roigada's avatar roigada
Browse files

Plugin should handle author display, not the theme

parent d9a9358d
Branches fix/author-name
No related tags found
No related merge requests found
......@@ -74,15 +74,6 @@ if ( !function_exists('current_tab') )
}
}
if ( !function_exists('get_imc_author') )
{
function get_imc_author(): string {
$post = get_post( get_the_ID() );
$author = get_post_meta( $post->ID, $post->post_type . '_metadata_author_display_name', true);
return $author;
}
}
if ( !function_exists('posted_by_on') )
{
function posted_by_on ( bool $short = false ): void
......@@ -137,7 +128,7 @@ if ( !function_exists('posted_by_on') )
printf('<span class="byline">, %1$s <span class="author vcard"><img class="meta icon" src="%2$suser.png" alt=""/>%3$s</span></span>',
__( 'by', 'imcpress-theme' ),
ICONS_URI,
esc_html( get_imc_author() )
esc_html( get_the_author() )
);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment