[wp-trac] [WordPress Trac] #36564: Last Modified for Comments
WordPress Trac
noreply at wordpress.org
Tue May 10 05:06:46 UTC 2016
#36564: Last Modified for Comments
-------------------------------------------------+-------------------------
Reporter: dshanske | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: Comments | Review
Severity: trivial | Version: 4.4
Keywords: needs-patch dev-feedback needs- | Resolution:
unit-tests | Focuses:
-------------------------------------------------+-------------------------
Comment (by dshanske):
I had mentioned a bit vaguely in Slack what I wanted to use this for. I
saw tickets where people wanted comment history, or comment revisions.
Both are potentially useful, but they don't address the simplest element
comments are missing in terms of history...a last modified date similar to
the one that posts have.
And in order for this to be stable, it has to be in a set place. So, my
suggestion was to set the keys in comment meta for this. And then create
some functions around this such as get_comment_updated_date.
Maybe this idea is backward. Maybe the comment meta should be original
date, and the modified date should be the existing one?
I hadn't considered WP_Comment as an issue, because I haven't really
started using it...makes me want to try though. Being as it mirrors a post
feature...a modified date, it probably should be retrieved as part of
WP_Comment.
@chrisvanpatten has a perfect use case. But at the most basic level, I
wanted to know the last time I updated a comment. I had been working on
implementing Webmentions(something I hope to get into Core someday) and
they allow for updates.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36564#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list