WordPress.org

Make WordPress Core

Ticket #46597: 46597.diff

File 46597.diff, 945 bytes (added by aduth, 5 months ago)
  • src/wp-includes/kses.php

    diff --git src/wp-includes/kses.php src/wp-includes/kses.php
    index 465364e6de..2b96e84a47 100644
    function safecss_filter_attr( $css, $deprecated = '' ) { 
    20622062         * @since 4.6.0 Added support for `list-style-type`.
    20632063         * @since 5.0.0 Added support for `background-image`.
    20642064         * @since 5.1.0 Added support for `text-transform`.
     2065         * @since 5.2.0 Added support for `background-position` and `grid-template-columns`
    20652066         *
    20662067         * @param string[] $attr Array of allowed CSS attributes.
    20672068         */
    function safecss_filter_attr( $css, $deprecated = '' ) { 
    20712072                        'background',
    20722073                        'background-color',
    20732074                        'background-image',
     2075                        'background-position',
    20742076
    20752077                        'border',
    20762078                        'border-width',
    function safecss_filter_attr( $css, $deprecated = '' ) { 
    21382140                        'overflow',
    21392141                        'vertical-align',
    21402142                        'list-style-type',
     2143                        'grid-template-columns',
    21412144                )
    21422145        );
    21432146