WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/23/2019 09:04:19 PM (6 months ago)
Author:
azaozz
Message:

Site Health: Allow some HTML (inline tags only) in the section descriptions. Add some more docs about expected formatting of the gathered data.

Props kraftbj, jeherve, mukesh27, audrasjb, azaozz.
Fixes #46878.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/site-health-info.php

    r45245 r45259  
    138138                <?php
    139139
    140                 $kses_settings = array(
    141                     'a'      => array(
    142                         'href' => true,
    143                     ),
    144                     'strong' => true,
    145                     'em'     => true,
    146                 );
    147 
    148140                if ( isset( $details['description'] ) && ! empty( $details['description'] ) ) {
    149                     printf( '<p>%s</p>', wp_kses( $details['description'], $kses_settings ) );
     141                    printf( '<p>%s</p>', $details['description'] );
    150142                }
    151143
Note: See TracChangeset for help on using the changeset viewer.