mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Code Modernization: Fix a jQuery Migrate deprecation in wpdialog.
This changeset replaces a `focus()` shorthand in WP Core's customized jQuery UI widget `wpdialog` to avoid a jQuery Migrate deprecation notice in the browser's console. Props TobiasBg, elifvish. Fixes #56830. git-svn-id: https://develop.svn.wordpress.org/trunk@55052 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a930d258b9
commit
c3aed4a3b1
@ -17,7 +17,7 @@
|
||||
this._super();
|
||||
|
||||
// WebKit leaves focus in the TinyMCE editor unless we shift focus.
|
||||
this.element.focus();
|
||||
this.element._trigger('focus');
|
||||
this._trigger('refresh');
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user