Privacy: docs fixes and improvements for wp_comments_personal_data_exporter()
.
Props desrosj. See #43440. git-svn-id: https://develop.svn.wordpress.org/trunk@43058 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
429aaa4a57
commit
a7f1665396
@ -3303,7 +3303,6 @@ function wp_register_comment_personal_data_exporter( $exporters ) {
|
|||||||
* @return array $return An array of personal data.
|
* @return array $return An array of personal data.
|
||||||
*/
|
*/
|
||||||
function wp_comments_personal_data_exporter( $email_address, $page = 1 ) {
|
function wp_comments_personal_data_exporter( $email_address, $page = 1 ) {
|
||||||
|
|
||||||
// Limit us to 500 comments at a time to avoid timing out.
|
// Limit us to 500 comments at a time to avoid timing out.
|
||||||
$number = 500;
|
$number = 500;
|
||||||
$page = (int) $page;
|
$page = (int) $page;
|
||||||
@ -3317,6 +3316,7 @@ function wp_comments_personal_data_exporter( $email_address, $page = 1 ) {
|
|||||||
'paged' => $page,
|
'paged' => $page,
|
||||||
'order_by' => 'comment_ID',
|
'order_by' => 'comment_ID',
|
||||||
'order' => 'ASC',
|
'order' => 'ASC',
|
||||||
|
'update_comment_meta_cache' => false,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -3325,7 +3325,7 @@ function wp_comments_personal_data_exporter( $email_address, $page = 1 ) {
|
|||||||
'comment_author_email' => __( 'Comment Author Email' ),
|
'comment_author_email' => __( 'Comment Author Email' ),
|
||||||
'comment_author_url' => __( 'Comment Author URL' ),
|
'comment_author_url' => __( 'Comment Author URL' ),
|
||||||
'comment_author_IP' => __( 'Comment Author IP' ),
|
'comment_author_IP' => __( 'Comment Author IP' ),
|
||||||
'comment_agent' => __( 'Comment Agent' ),
|
'comment_agent' => __( 'Comment Author User Agent' ),
|
||||||
'comment_date' => __( 'Comment Date' ),
|
'comment_date' => __( 'Comment Date' ),
|
||||||
'comment_content' => __( 'Comment Content' ),
|
'comment_content' => __( 'Comment Content' ),
|
||||||
'comment_link' => __( 'Comment URL' ),
|
'comment_link' => __( 'Comment URL' ),
|
||||||
@ -3344,7 +3344,7 @@ function wp_comments_personal_data_exporter( $email_address, $page = 1 ) {
|
|||||||
case 'comment_author_IP':
|
case 'comment_author_IP':
|
||||||
case 'comment_agent':
|
case 'comment_agent':
|
||||||
case 'comment_date':
|
case 'comment_date':
|
||||||
$value = $comment->$key;
|
$value = $comment->{$key};
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'comment_content':
|
case 'comment_content':
|
||||||
|
Loading…
Reference in New Issue
Block a user