/* translators: %s: Revision date. */
$currentf =
__( '%s [Current Revision]'
);
$date =
date_i18n( $datef,
strtotime( $revision->post_modified
) );
$edit_link =
get_edit_post_link( $revision->ID
);
if ( $link &&
current_user_can( 'edit_post',
$revision->ID
) &&
$edit_link ) { $date = "<a href='
$edit_link'>
$date</a>";
} if ( !
wp_is_post_revision( $revision ) ) { $date =
sprintf( $currentf,
$date );
} elseif ( wp_is_post_autosave( $revision ) ) { $date =
sprintf( $autosavef,
$date );
} return $date;
}/**
* Retrieves formatted date timestamp of a revision (linked to that revisions's page).
*
* @since 3.6.0
*
* @param int|object $revision Revision ID or revision object.
* @param bool $link Optional. Whether to link to revision's page. Default true.
* @return string|false gravatar, user, i18n formatted datetimestamp or localized 'Current Revision'.
*/