Avoid a JS error when switching post format if Visual editor is disabled. fixes #24218.

git-svn-id: https://develop.svn.wordpress.org/trunk@24141 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-04-29 20:44:15 +00:00
parent eb658a87d7
commit c90caa9593
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ window.wp = window.wp || {};
description.slideDown( 'fast' );
}
if ( tinymce ) {
if ( typeof tinymce !== 'undefined' ) {
editor = tinymce.get( 'content' );
if ( editor ) {