diff --git src/wp-admin/includes/privacy-tools.php src/wp-admin/includes/privacy-tools.php
index a8a115b..5094605 100644
|
|
function _wp_personal_data_cleanup_requests() { |
234 | 234 | * @return string The HTML for this group and its items. |
235 | 235 | */ |
236 | 236 | function wp_privacy_generate_personal_data_export_group_html( $group_data ) { |
237 | | $group_html = '<h2>' . esc_html( $group_data['group_label'] ) . '</h2>'; |
| 237 | |
| 238 | $group_html = '<h2>'; |
| 239 | $group_html .= esc_html( $group_data['group_label'] ); |
| 240 | |
| 241 | if ( $group_data['group_display_count'] ) { |
| 242 | $items_count = count( (array) $group_data['items'] ); |
| 243 | $group_html .= sprintf( ' <span class="count">(%d)</span>', $items_count ); |
| 244 | } |
| 245 | |
| 246 | $group_html .= '</h2>'; |
238 | 247 | |
239 | 248 | if ( ! empty( $group_data['group_description'] ) ) { |
240 | 249 | $group_html .= '<p>' . esc_html( $group_data['group_description'] ) . '</p>'; |
… |
… |
function wp_privacy_process_personal_data_export_page( $response, $exporter_inde |
621 | 630 | $group_id = $export_datum['group_id']; |
622 | 631 | $group_label = $export_datum['group_label']; |
623 | 632 | |
| 633 | $group_display_count = false; |
| 634 | if ( isset( $export_datum['group_display_count'] ) ) { |
| 635 | $group_display_count = (bool) $export_datum['group_display_count']; |
| 636 | } |
| 637 | |
624 | 638 | $group_description = ''; |
625 | 639 | if ( ! empty( $export_datum['group_description'] ) ) { |
626 | 640 | $group_description = $export_datum['group_description']; |
… |
… |
function wp_privacy_process_personal_data_export_page( $response, $exporter_inde |
628 | 642 | |
629 | 643 | if ( ! array_key_exists( $group_id, $groups ) ) { |
630 | 644 | $groups[ $group_id ] = array( |
631 | | 'group_label' => $group_label, |
632 | | 'group_description' => $group_description, |
633 | | 'items' => array(), |
| 645 | 'group_label' => $group_label, |
| 646 | 'group_display_count' => $group_display_count, |
| 647 | 'group_description' => $group_description, |
| 648 | 'items' => array(), |
634 | 649 | ); |
635 | 650 | } |
636 | 651 | |
diff --git src/wp-includes/comment.php src/wp-includes/comment.php
index 841bb9b..e51d118 100644
|
|
function wp_comments_personal_data_exporter( $email_address, $page = 1 ) { |
3434 | 3434 | } |
3435 | 3435 | |
3436 | 3436 | $data_to_export[] = array( |
3437 | | 'group_id' => 'comments', |
3438 | | 'group_label' => __( 'Comments' ), |
3439 | | 'group_description' => __( 'User’s comment data.' ), |
3440 | | 'item_id' => "comment-{$comment->comment_ID}", |
3441 | | 'data' => $comment_data_to_export, |
| 3437 | 'group_id' => 'comments', |
| 3438 | 'group_label' => __( 'Comments' ), |
| 3439 | 'group_display_count' => true, |
| 3440 | 'group_description' => __( 'User’s comment data.' ), |
| 3441 | 'item_id' => "comment-{$comment->comment_ID}", |
| 3442 | 'data' => $comment_data_to_export, |
3442 | 3443 | ); |
3443 | 3444 | } |
3444 | 3445 | |
diff --git src/wp-includes/media.php src/wp-includes/media.php
index 27b1eb8..8b7eec5 100644
|
|
function wp_media_personal_data_exporter( $email_address, $page = 1 ) { |
4307 | 4307 | ); |
4308 | 4308 | |
4309 | 4309 | $data_to_export[] = array( |
4310 | | 'group_id' => 'media', |
4311 | | 'group_label' => __( 'Media' ), |
4312 | | 'group_description' => __( 'User’s media data.' ), |
4313 | | 'item_id' => "post-{$post->ID}", |
4314 | | 'data' => $post_data_to_export, |
| 4310 | 'group_id' => 'media', |
| 4311 | 'group_label' => __( 'Media' ), |
| 4312 | 'group_display_count' => true, |
| 4313 | 'group_description' => __( 'User’s media data.' ), |
| 4314 | 'item_id' => "post-{$post->ID}", |
| 4315 | 'data' => $post_data_to_export, |
4315 | 4316 | ); |
4316 | 4317 | } |
4317 | 4318 | } |