HEX
Server: Apache
System: Linux BC-WP-PSVR01.bindcloud.jp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: apache (48)
PHP: 8.3.8
Disabled: phpinfo, proc_open, shell_exec, exec, system, dl, passthru, putenv, chown, chgrp, chmod, popen, pclose, pfsockopen, ssh2_connect, ssh2_tunnel, virtual
Upload Files
File: /d/premium/planet/inosan/wlwp1/wp-includes/js/wpdialog.js
/**
 * @output wp-includes/js/wpdialog.js
 */

/*
 * Wrap the jQuery UI Dialog open function remove focus from tinyMCE.
 */
( function($) {
	$.widget('wp.wpdialog', $.ui.dialog, {
		open: function() {
			// Add beforeOpen event.
			if ( this.isOpen() || false === this._trigger('beforeOpen') ) {
				return;
			}

			// Open the dialog.
			this._super();

			// WebKit leaves focus in the TinyMCE editor unless we shift focus.
			this.element.trigger('focus');
			this._trigger('refresh');
		}
	});

	$.wp.wpdialog.prototype.options.closeOnEscape = false;

})(jQuery);