Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Display comment times with default functions #151

Merged
merged 5 commits into from
Oct 19, 2018

Conversation

briannaorg
Copy link
Contributor

Fixes issue #81.

Replace the lovely human_time_diff() with the get_comment_date() and
get_comment_time() functions so that a user’s chosen time display
settings are used in comments display.

If we end up building a project plugin for this (per the results of our dev tooling discussions) it would be great to add a setting in the Customizer that allows “human readable” time displays, to take advantage of the existing functions in template-tags.php.

WordPress.org username: technosiren

Replace the lovely human_time_diff() with the get_comment_date() and
get_comment_time() functions so that a user’s chosen time display
settings are used in comments display.
@enodekciw
Copy link
Contributor

Maybe remove twentynineteen_human_time_diff()completely? If it's not used anymore, it shouldn't be in inc/template-tags.php either.

@kjellr
Copy link
Collaborator

kjellr commented Oct 18, 2018

Maybe remove twentynineteen_human_time_diff()completely? If it's not used anymore, it shouldn't be in inc/template-tags.php either.

Agreed. @briannaorg — once you remove that function, this'll be good to go. 👍

Thanks!

Remove unused function.
@briannaorg
Copy link
Contributor Author

All set! inc/template-tags.php has been updated, unused function has been removed & tested.

@allancole
Copy link
Collaborator

Looks good! 👍Thanks @briannaorg

@allancole allancole merged commit 3b361b7 into WordPress:master Oct 19, 2018
@briannaorg briannaorg deleted the fix-131-81 branch October 19, 2018 19:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants