Make WordPress Core


Ignore:
Timestamp:
02/01/2023 10:50:11 PM (18 months ago)
Author:
hellofromTonya
Message:

KSES: Allow position-related CSS properties.

Adds support for the following CSS properties considered safe for inline CSS:

  • position
  • top
  • right
  • bottom
  • left
  • z-index

References:

Follow-up to [54117].

Props andrewserong, mukesh27.
Fixes #57504.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/kses.php

    r55131 r55184  
    12791279                'expected' => '',
    12801280            ),
     1281            // Position properties introduced in 6.2.
     1282            array(
     1283                'css'      => 'position: sticky;top: 0;left: 0;right: 0;bottom: 0;z-index: 10;',
     1284                'expected' => 'position: sticky;top: 0;left: 0;right: 0;bottom: 0;z-index: 10',
     1285            ),
    12811286        );
    12821287    }
Note: See TracChangeset for help on using the changeset viewer.