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:
parent
eb658a87d7
commit
c90caa9593
|
@ -121,7 +121,7 @@ window.wp = window.wp || {};
|
||||||
description.slideDown( 'fast' );
|
description.slideDown( 'fast' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( tinymce ) {
|
if ( typeof tinymce !== 'undefined' ) {
|
||||||
editor = tinymce.get( 'content' );
|
editor = tinymce.get( 'content' );
|
||||||
|
|
||||||
if ( editor ) {
|
if ( editor ) {
|
||||||
|
|
Loading…
Reference in New Issue