Make WordPress Core


Ignore:
Timestamp:
05/02/2018 03:33:22 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Privacy: add attachments to the personal data export file.

Props allendav.
Merges [43054] to the 4.9 branch.
See #43883.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/includes/file.php

    r43096 r43108  
    18401840
    18411841        foreach ( (array) $group_item_data as $group_item_datum ) {
     1842            $value = $group_item_datum['value'];
     1843            // If it looks like a link, make it a link
     1844            if ( false === strpos( $value, ' ' ) && ( 0 === strpos( $value, 'http://' ) || 0 === strpos( $value, 'https://' ) ) ) {
     1845                $value = '<a href="' . esc_url( $value ) . '">' . esc_html( $value ) . '</a>';
     1846            }
     1847
    18421848            $group_html .= '<tr>';
    18431849            $group_html .= '<th>' . esc_html( $group_item_datum['name'] ) . '</th>';
    1844             $group_html .= '<td>' . wp_kses( $group_item_datum['value'], $allowed_tags, $allowed_protocols ) . '</td>';
     1850            $group_html .= '<td>' . wp_kses( $value, $allowed_tags, $allowed_protocols ) . '</td>';
    18451851            $group_html .= '</tr>';
    18461852        }
Note: See TracChangeset for help on using the changeset viewer.