From 8d27055b0c5cc411159da7c41e58a96d453b6fb4 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 25 Aug 2015 21:46:20 +0000 Subject: [PATCH] Allow these CSS properties in KSES: `min-height', 'max-height', 'min-width', 'max-width'` Props MikeHansenMe. Fixes #31949. Built from https://develop.svn.wordpress.org/trunk@33739 git-svn-id: http://core.svn.wordpress.org/trunk@33707 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/kses.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/kses.php b/wp-includes/kses.php index 578c5ba4ff..9504f48679 100644 --- a/wp-includes/kses.php +++ b/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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 4111ea509b..d782363157 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-33738'; +$wp_version = '4.4-alpha-33739'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.