Editor: add sanity limit for editor height of 5000px, save only when resizing the Visual or the Text editor, fixes #22708

git-svn-id: https://develop.svn.wordpress.org/trunk@23016 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2012-12-04 06:01:47 +00:00
parent 3c992973bb
commit 7bc623ca09
2 changed files with 13 additions and 10 deletions

View File

@@ -71,6 +71,8 @@ final class _WP_Editors {
if ( $set['editor_height'] < 50 )
$set['editor_height'] = 50;
elseif ( $set['editor_height'] > 3000 )
$set['editor_height'] = 5000;
return $set;
}