Make WordPress Core


Ignore:
Timestamp:
05/18/2019 04:33:27 AM (6 years ago)
Author:
peterwilsoncc
Message:

KSES: Add flex and related long form properties to safe CSS.

Allow flex, flex-grow, flex-shrink and flex-basis to be used in inline CSS. As of WordPress 5.3 the block editor is expected to use flex-basis inline to set the width in the column block.

Props aduth.
Fixes #47281.
See #37248.

File:
1 edited

Legend:

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

    r45242 r45363  
    20642064     * @since 5.1.0 Added support for `text-transform`.
    20652065     * @since 5.2.0 Added support for `background-position` and `grid-template-columns`
     2066     * @since 5.3.0 Added support for `flex`, `flex-grow`, `flex-shrink`, and `flex-basis`.
    20662067     *
    20672068     * @param string[] $attr Array of allowed CSS attributes.
     
    21342135            'padding-top',
    21352136
     2137            'flex',
     2138            'flex-grow',
     2139            'flex-shrink',
     2140            'flex-basis',
     2141
    21362142            'clear',
    21372143            'cursor',
Note: See TracChangeset for help on using the changeset viewer.