Make WordPress Core


Ignore:
Timestamp:
08/26/2025 09:06:43 PM (8 months ago)
Author:
TimothyBlynJacobs
Message:

Formatting: Add 'white-space' as an allowed KSES CSS attribute.

The 'white-space' attribute is safe, has wide browser support, and is useful.

Props sukhendu2002, mukesh27, whyisjake..
Fixes #51707.

File:
1 edited

Legend:

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

    r60616 r60671  
    24192419 * @since 6.5.0 Added support for `background-repeat`.
    24202420 * @since 6.6.0 Added support for `grid-column`, `grid-row`, and `container-type`.
     2421 * @since 6.9.0 Added support for `white-space`.
    24212422 *
    24222423 * @param string $css        A string of CSS rules.
     
    25112512            'text-indent',
    25122513            'text-transform',
     2514            'white-space',
    25132515
    25142516            'height',
Note: See TracChangeset for help on using the changeset viewer.