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
This commit is contained in:
Scott Taylor 2015-08-25 21:45:42 +00:00
parent c76e3b3273
commit 4a622d21fb
1 changed files with 2 additions and 2 deletions

View File

@ -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;