Editor: 'undefined' !== 'undefiend'
Fix a typo in [37630]. See #36662. Built from https://develop.svn.wordpress.org/trunk@37632 git-svn-id: http://core.svn.wordpress.org/trunk@37600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -158,7 +158,7 @@
|
||||
editToolbar = editor.wp._createToolbar( editButtons, true );
|
||||
|
||||
editToolbar.on( 'show', function() {
|
||||
if ( typeof window.wpLink === 'undefiend' || ! window.wpLink.modalOpen ) {
|
||||
if ( typeof window.wpLink === 'undefined' || ! window.wpLink.modalOpen ) {
|
||||
window.setTimeout( function() {
|
||||
var element = editToolbar.$el.find( 'input.ui-autocomplete-input' )[0],
|
||||
selection = linkNode && ( linkNode.textContent || linkNode.innerText );
|
||||
@@ -475,7 +475,7 @@
|
||||
var linkNode = editor.dom.getParent( event.element, 'a' ),
|
||||
$linkNode, href, edit;
|
||||
|
||||
if ( typeof window.wpLink !== 'undefiend' && window.wpLink.modalOpen ) {
|
||||
if ( typeof window.wpLink !== 'undefined' && window.wpLink.modalOpen ) {
|
||||
editToolbar.tempHide = true;
|
||||
return;
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
Reference in New Issue
Block a user