Remove some old backwards compatibility code from TinyMCE. Merge of [32166] to the 4.1 branch.
Props azaozz. Built from https://develop.svn.wordpress.org/branches/4.1@32167 git-svn-id: http://core.svn.wordpress.org/branches/4.1@32142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
96cffc1a02
commit
93eba2d6f9
|
@ -117,12 +117,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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue