Merge pull request #37 from Ambrosiani/function_exists

Function exists
This commit is contained in:
Mateus Machado Luna 2020-10-15 16:00:55 -03:00 committed by GitHub
commit 9e904d3d8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 14 deletions

View File

@ -96,7 +96,8 @@ endif;
/**
* Display date of post.
*/
function tainacan_meta_date_author( $echo = true ) {
if ( ! function_exists('tainacan_meta_date_author') ) {
function tainacan_meta_date_author( $echo = true ) {
$time = '<time class="entry-date published" datetime="%1$s">%2$s</time>';
$time_string = sprintf( $time,
@ -115,6 +116,7 @@ function tainacan_meta_date_author( $echo = true ) {
} else {
return $string;
}
}
}
// define the cancel_comment_reply_link callback