TinyMCE: views: fix typo in createInstance

This prevented instances from being reused.

Fixes #32591.

Built from https://develop.svn.wordpress.org/trunk@32710


git-svn-id: http://core.svn.wordpress.org/trunk@32680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Ella Iseulde Van Dorpe 2015-06-08 19:54:25 +00:00
parent e8ad0ff400
commit e9ac7f5164
3 changed files with 6 additions and 5 deletions

View File

@ -156,14 +156,15 @@ window.wp = window.wp || {};
encodedText,
instance;
text = tinymce.DOM.decode( text ),
encodedText = encodeURIComponent( text ),
instance = this.getInstance( encodedText );
text = tinymce.DOM.decode( text );
instance = this.getInstance( text );
if ( instance ) {
return instance;
}
encodedText = encodeURIComponent( text );
options = _.extend( options || {}, {
text: text,
encodedText: encodedText

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-alpha-32709';
$wp_version = '4.3-alpha-32710';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.