Make WordPress Core

Ticket #44044: 44044.2.diff

File 44044.2.diff, 1.0 KB (added by desrosj, 7 years ago)
  • src/wp-admin/includes/file.php

     
    19581958 * @return string The HTML for this group and its items.
    19591959 */
    19601960function wp_privacy_generate_personal_data_export_group_html( $group_data ) {
    1961         $allowed_tags      = array(
    1962                 'a' => array(
    1963                         'href'   => array(),
    1964                         'target' => array()
    1965                 ),
    1966                 'br' => array()
    1967         );
    1968         $allowed_protocols = array( 'http', 'https' );
    1969         $group_html        = '';
    1970 
     1961        $group_html = '';
    19711962        $group_html .= '<h2>' . esc_html( $group_data['group_label'] ) . '</h2>';
    19721963        $group_html .= '<div>';
    19731964
     
    19841975
    19851976                        $group_html .= '<tr>';
    19861977                        $group_html .= '<th>' . esc_html( $group_item_datum['name'] ) . '</th>';
    1987                         $group_html .= '<td>' . wp_kses( $value, $allowed_tags, $allowed_protocols ) . '</td>';
     1978                        $group_html .= '<td>' . wp_kses( $value, 'personal_data_export' ) . '</td>';
    19881979                        $group_html .= '</tr>';
    19891980                }
    19901981