mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-02 01:20:03 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user