WordPress.org

Make WordPress Core

Changeset 51729


Ignore:
Timestamp:
09/03/2021 01:36:20 AM (6 weeks ago)
Author:
SergeyBiryukov
Message:

Docs: Move @since notes from the safe_style_css filter to the safecss_filter_attr() function.

The filter allows to modify the list of allowed CSS attributes, however support for specific CSS attributes is added to the function rather than the filter.

Follow-up to [37931], [38121], [42880], [44136], [44531], [45242], [45363], [46235], [46793], [50634], [50923].

Props tmatsuur, muhammadfaizanhaidar, sabernhardt.
Fixes #53731.

File:
1 edited

Legend:

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

    r51675 r51729  
    21532153 *
    21542154 * @since 2.8.1
     2155 * @since 4.4.0 Added support for `min-height`, `max-height`, `min-width`, and `max-width`.
     2156 * @since 4.6.0 Added support for `list-style-type`.
     2157 * @since 5.0.0 Added support for `background-image`.
     2158 * @since 5.1.0 Added support for `text-transform`.
     2159 * @since 5.2.0 Added support for `background-position` and `grid-template-columns`.
     2160 * @since 5.3.0 Added support for `grid`, `flex` and `column` layout properties.
     2161 *              Extend `background-*` support of individual properties.
     2162 * @since 5.3.1 Added support for gradient backgrounds.
     2163 * @since 5.7.1 Added support for `object-position`.
     2164 * @since 5.8.0 Added support for `calc()` and `var()` values.
    21552165 *
    21562166 * @param string $css        A string of CSS rules.
     
    21712181
    21722182    /**
    2173      * Filters list of allowed CSS attributes.
     2183     * Filters the list of allowed CSS attributes.
    21742184     *
    21752185     * @since 2.8.1
    2176      * @since 4.4.0 Added support for `min-height`, `max-height`, `min-width`, and `max-width`.
    2177      * @since 4.6.0 Added support for `list-style-type`.
    2178      * @since 5.0.0 Added support for `background-image`.
    2179      * @since 5.1.0 Added support for `text-transform`.
    2180      * @since 5.2.0 Added support for `background-position` and `grid-template-columns`.
    2181      * @since 5.3.0 Added support for `grid`, `flex` and `column` layout properties.
    2182      *              Extend `background-*` support of individual properties.
    2183      * @since 5.3.1 Added support for gradient backgrounds.
    2184      * @since 5.7.1 Added support for `object-position`.
    2185      * @since 5.8.0 Added support for `calc()` and `var()` values.
    21862186     *
    21872187     * @param string[] $attr Array of allowed CSS attributes.
Note: See TracChangeset for help on using the changeset viewer.