mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-25 05:34:32 +00:00
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:
@@ -121,7 +121,7 @@ window.wp = window.wp || {};
|
||||
description.slideDown( 'fast' );
|
||||
}
|
||||
|
||||
if ( tinymce ) {
|
||||
if ( typeof tinymce !== 'undefined' ) {
|
||||
editor = tinymce.get( 'content' );
|
||||
|
||||
if ( editor ) {
|
||||
|
||||
Reference in New Issue
Block a user