Make WordPress Core


Ignore:
Timestamp:
06/07/2024 04:48:42 PM (11 months ago)
Author:
westonruter
Message:

General: Fix array format for allowed HTML passed into wp_kses() for wp_trigger_error().

Kses requires an associative array of allowed HTML.

See #57686. Follow-up to [56707].

Props thelovekesh, westonruter.
Fixes #61318.

File:
1 edited

Legend:

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

    r58278 r58361  
    60696069        $message,
    60706070        array(
    6071             'a' => array( 'href' ),
    6072             'br',
    6073             'code',
    6074             'em',
    6075             'strong',
     6071            'a'      => array( 'href' => true ),
     6072            'br'     => array(),
     6073            'code'   => array(),
     6074            'em'     => array(),
     6075            'strong' => array(),
    60766076        ),
    60776077        array( 'http', 'https' )
Note: See TracChangeset for help on using the changeset viewer.