Edit File by line
/home/barbar84/public_h.../wp-inclu.../js
File: wpdialog.js
/**
[0] Fix | Delete
* @output wp-includes/js/wpdialog.js
[1] Fix | Delete
*/
[2] Fix | Delete
[3] Fix | Delete
/*
[4] Fix | Delete
* Wrap the jQuery UI Dialog open function remove focus from tinyMCE.
[5] Fix | Delete
*/
[6] Fix | Delete
( function($) {
[7] Fix | Delete
$.widget('wp.wpdialog', $.ui.dialog, {
[8] Fix | Delete
open: function() {
[9] Fix | Delete
// Add beforeOpen event.
[10] Fix | Delete
if ( this.isOpen() || false === this._trigger('beforeOpen') ) {
[11] Fix | Delete
return;
[12] Fix | Delete
}
[13] Fix | Delete
[14] Fix | Delete
// Open the dialog.
[15] Fix | Delete
this._super();
[16] Fix | Delete
[17] Fix | Delete
// WebKit leaves focus in the TinyMCE editor unless we shift focus.
[18] Fix | Delete
this.element.focus();
[19] Fix | Delete
this._trigger('refresh');
[20] Fix | Delete
}
[21] Fix | Delete
});
[22] Fix | Delete
[23] Fix | Delete
$.wp.wpdialog.prototype.options.closeOnEscape = false;
[24] Fix | Delete
[25] Fix | Delete
})(jQuery);
[26] Fix | Delete
[27] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function