Skip to content

Commit c3aed4a

Browse files
committed
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
1 parent a930d25 commit c3aed4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/_enqueues/lib/dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
this._super();
1818

1919
// WebKit leaves focus in the TinyMCE editor unless we shift focus.
20-
this.element.focus();
20+
this.element._trigger('focus');
2121
this._trigger('refresh');
2222
}
2323
});

0 commit comments

Comments
 (0)