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:
parent
e8ad0ff400
commit
e9ac7f5164
@ -156,14 +156,15 @@ window.wp = window.wp || {};
|
|||||||
encodedText,
|
encodedText,
|
||||||
instance;
|
instance;
|
||||||
|
|
||||||
text = tinymce.DOM.decode( text ),
|
text = tinymce.DOM.decode( text );
|
||||||
encodedText = encodeURIComponent( text ),
|
instance = this.getInstance( text );
|
||||||
instance = this.getInstance( encodedText );
|
|
||||||
|
|
||||||
if ( instance ) {
|
if ( instance ) {
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
encodedText = encodeURIComponent( text );
|
||||||
|
|
||||||
options = _.extend( options || {}, {
|
options = _.extend( options || {}, {
|
||||||
text: text,
|
text: text,
|
||||||
encodedText: encodedText
|
encodedText: encodedText
|
||||||
|
2
wp-includes/js/mce-view.min.js
vendored
2
wp-includes/js/mce-view.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user