Make WordPress Core

Ticket #44044: 44044.patch

File 44044.patch, 1.5 KB (added by TZ Media, 7 years ago)
  • src/wp-admin/includes/file.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    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()
     1961    /**
     1962     * Filter the allowed tags inside the generated HTML output.
     1963     *
     1964     * @since 4.9.6
     1965     *
     1966     * TODO: Document parameter.
     1967     */
     1968    $allowed_tags = apply_filters(
     1969        'wp_privacy_personal_data_export_allowed_tags',
     1970        array(
     1971            'a' => array(
     1972                'href'   => array(),
     1973                'target' => array()
     1974            ),
     1975            'br' => array()
     1976        )
    19671977        );
    1968         $allowed_protocols = array( 'http', 'https' );
    1969         $group_html        = '';
     1978
     1979    /**
     1980     * Filter the allowed protocols inside the generated HTML output.
     1981     *
     1982     * @since 4.9.6
     1983     *
     1984     * @param array $allowed_protocols A list of protocols.
     1985     */
     1986        $allowed_protocols = apply_filters(
     1987        'wp_privacy_personal_data_export_allowed_protocols',
     1988        array( 'http', 'https' )
     1989    );
     1990
     1991        $group_html = '';
    19701992
    19711993        $group_html .= '<h2>' . esc_html( $group_data['group_label'] ) . '</h2>';
    19721994        $group_html .= '<div>';