Make WordPress Core

Changeset 32710


Ignore:
Timestamp:
06/08/2015 07:53:35 PM (9 years ago)
Author:
iseulde
Message:

TinyMCE: views: fix typo in createInstance

This prevented instances from being reused.

Fixes #32591.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/mce-view.js

    r32678 r32710  
    157157                instance;
    158158
    159             text = tinymce.DOM.decode( text ),
    160             encodedText = encodeURIComponent( text ),
    161             instance = this.getInstance( encodedText );
     159            text = tinymce.DOM.decode( text );
     160            instance = this.getInstance( text );
    162161
    163162            if ( instance ) {
    164163                return instance;
    165164            }
     165
     166            encodedText = encodeURIComponent( text );
    166167
    167168            options = _.extend( options || {}, {
Note: See TracChangeset for help on using the changeset viewer.