Remove some old backwards compatibility code from TinyMCE. Merge of [32166] to the 4.0 branch.

Props azaozz.


Built from https://develop.svn.wordpress.org/branches/4.0@32193


git-svn-id: http://core.svn.wordpress.org/branches/4.0@32166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2015-04-20 12:49:33 +00:00
parent 3170d00fa6
commit 766a6f6fa1
1 changed files with 0 additions and 6 deletions

View File

@ -116,12 +116,6 @@ final class _WP_Editors {
// A cookie (set when a user resizes the editor) overrides the height. // A cookie (set when a user resizes the editor) overrides the height.
$cookie = (int) get_user_setting( 'ed_size' ); $cookie = (int) get_user_setting( 'ed_size' );
// Upgrade an old TinyMCE cookie if it is still around, and the new one isn't.
if ( ! $cookie && isset( $_COOKIE['TinyMCE_content_size'] ) ) {
parse_str( $_COOKIE['TinyMCE_content_size'], $cookie );
$cookie = $cookie['ch'];
}
if ( $cookie ) if ( $cookie )
$set['editor_height'] = $cookie; $set['editor_height'] = $cookie;
} }