WordPress.org

Make WordPress Core

Changeset 24141


Ignore:
Timestamp:
04/29/13 20:44:15 (12 months ago)
Author:
SergeyBiryukov
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/post-formats.js

    r24114 r24141  
    122122        } 
    123123 
    124         if ( tinymce ) { 
     124        if ( typeof tinymce !== 'undefined' ) { 
    125125            editor = tinymce.get( 'content' ); 
    126126 
Note: See TracChangeset for help on using the changeset viewer.