Make WordPress Core

Changeset 55309


Ignore:
Timestamp:
02/13/2023 08:45:48 AM (16 months ago)
Author:
audrasjb
Message:

Formatting: Add aspect-ratio as valid CSS property in KSES.

This changeset adds support for the aspect-ratio CSS property, which is considered safe for inline CSS.

Props ajlende, peterwilsoncc.
Fixes #57664.

File:
1 edited

Legend:

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

    r55184 r55309  
    22782278 *              Added support for `object-fit`, `gap`, `column-gap`, `row-gap`, and `flex-wrap`.
    22792279 *              Extended `margin-*` and `padding-*` support for logical properties.
    2280  * @since 6.2.0 Added support for `position`, `top`, `right`, `bottom`, `left` and `z-index` position CSS properties.
     2280 * @since 6.2.0 Added support for `aspect-ratio`, `position`, `top`, `right`, `bottom`, `left`,
     2281 *              and `z-index` CSS properties.
    22812282 *
    22822283 * @param string $css        A string of CSS rules.
     
    24462447            'left',
    24472448            'z-index',
     2449            'aspect-ratio',
    24482450
    24492451            // Custom CSS properties.
Note: See TracChangeset for help on using the changeset viewer.