From 4a622d21fb877a50f7976fe12ae4bac687bc398e Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 25 Aug 2015 21:45:42 +0000 Subject: [PATCH] Allow these CSS properties in KSES: `min-height', 'max-height', 'min-width', 'max-width'` Props MikeHansenMe. Fixes #31949. git-svn-id: https://develop.svn.wordpress.org/trunk@33739 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/kses.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/kses.php b/src/wp-includes/kses.php index 578c5ba4ff..9504f48679 100644 --- a/src/wp-includes/kses.php +++ b/src/wp-includes/kses.php @@ -1694,10 +1694,10 @@ function safecss_filter_attr( $css, $deprecated = '' ) { 'border-right-style', 'border-right-width', 'border-spacing', 'border-style', 'border-top', 'border-top-color', 'border-top-style', 'border-top-width', 'border-width', 'caption-side', 'clear', 'cursor', 'direction', 'font', 'font-family', 'font-size', 'font-style', - 'font-variant', 'font-weight', 'height', 'letter-spacing', 'line-height', 'margin-bottom', + 'font-variant', 'font-weight', 'height', 'min-height','max-height' , 'letter-spacing', 'line-height', 'margin-bottom', 'margin-left', 'margin-right', 'margin-top', 'overflow', 'padding', 'padding-bottom', 'padding-left', 'padding-right', 'padding-top', 'text-decoration', 'text-indent', 'vertical-align', - 'width' ) ); + 'width', 'min-width', 'max-width' ) ); if ( empty($allowed_attr) ) return $css;