[wp-trac] [WordPress Trac] #43440: Add tools to show and export the personal data of commenters
WordPress Trac
noreply at wordpress.org
Tue Mar 6 07:38:30 UTC 2018
#43440: Add tools to show and export the personal data of commenters
------------------------------+------------------
Reporter: azaozz | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 5.0
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: gdpr needs-patch | Focuses:
------------------------------+------------------
Comment (by xkon):
[attachment:43440.1.diff] just cleans up the process a bit and returns a
JSON with the:
date
author_email
author_name
author_url
comment
I added the date as a means of reference, I'm sure it will somehow be
needed eventually if somebody comes to the use of the export function.
As an example if we do :
{{{
$exports = export_comments( 'wapuu at wordpress.example' );
error_log( print_r( $exports, true ) );
}}}
We can get:
{{{
[
{
"date":"2018-03-06 06:58:01",
"author_email":"wapuu at wordpress.example",
"author_name":"A WordPress Commenter",
"author_url":"https:\/\/wordpress.org\/",
"comment":"Hi, this is a comment.\r\nTo get started with moderating,
editing, and deleting comments, please visit the Comments screen in the
dashboard.\r\nCommenter avatars come from Gravatar<\/a>."
},
{
"date":"2018-03-06 06:58:01",
"author_email":"wapuu at wordpress.example",
"author_name":"A WordPress Commenter",
"author_url":"https:\/\/wordpress.org\/",
"comment":"Hi, this is a comment.\r\nTo get started with moderating,
editing, and deleting comments, please visit the Comments screen in the
dashboard.\r\nCommenter avatars come from Gravatar<\/a>."
}
]
}}}
We can either show this JSON for copy/paste in a placeholder or make it a
file etc on the actual Tools page.
IMHO as this pretty much extends the current comments functions either
way, it might be useful in the future in different areas as well if we
want to add more things or make it create a wider range of options /
exports.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43440#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list