From 4325de46294bcf6cba48bd77ce9a1254e6f79aad Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Thu, 18 Apr 2019 05:56:51 +0000 Subject: [PATCH] KSES: Add `background-position` and `grid-template-columns` as safe CSS properties. Props aduth. Fixes #46597. Built from https://develop.svn.wordpress.org/trunk@45242 git-svn-id: http://core.svn.wordpress.org/trunk@45051 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/kses.php | 3 +++ wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/kses.php b/wp-includes/kses.php index 465364e6de..2b96e84a47 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -2062,6 +2062,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) { * @since 4.6.0 Added support for `list-style-type`. * @since 5.0.0 Added support for `background-image`. * @since 5.1.0 Added support for `text-transform`. + * @since 5.2.0 Added support for `background-position` and `grid-template-columns` * * @param string[] $attr Array of allowed CSS attributes. */ @@ -2071,6 +2072,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) { 'background', 'background-color', 'background-image', + 'background-position', 'border', 'border-width', @@ -2138,6 +2140,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) { 'overflow', 'vertical-align', 'list-style-type', + 'grid-template-columns', ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 5f12757c90..7f22e5d2ac 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-beta3-45241'; +$wp_version = '5.2-beta3-45242'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.