Make WordPress Core


Ignore:
Timestamp:
05/01/2018 01:44:50 PM (6 years ago)
Author:
azaozz
Message:

Privacy: add attachments to the personal data export file.

Props allendav.
See #43883.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/file.php

    r43047 r43054  
    19771977
    19781978        foreach ( (array) $group_item_data as $group_item_datum ) {
     1979            $value = $group_item_datum['value'];
     1980            // If it looks like a link, make it a link
     1981            if ( false === strpos( $value, ' ' ) && ( 0 === strpos( $value, 'http://' ) || 0 === strpos( $value, 'https://' ) ) ) {
     1982                $value = '<a href="' . esc_url( $value ) . '">' . esc_html( $value ) . '</a>';
     1983            }
     1984
    19791985            $group_html .= '<tr>';
    19801986            $group_html .= '<th>' . esc_html( $group_item_datum['name'] ) . '</th>';
    1981             $group_html .= '<td>' . wp_kses( $group_item_datum['value'], $allowed_tags, $allowed_protocols ) . '</td>';
     1987            $group_html .= '<td>' . wp_kses( $value, $allowed_tags, $allowed_protocols ) . '</td>';
    19821988            $group_html .= '</tr>';
    19831989        }
Note: See TracChangeset for help on using the changeset viewer.