Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/Divi/core/admin/js
File: page-resource-fallback.js
// NOTE: A minified copy of this script will be generated by grunt. Only the minified file will be included in zipped releases.
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Callback for the 'onload' and 'onerror' events of <link>/<script> tags for page resources.
[3] Fix | Delete
*
[4] Fix | Delete
* @param {HTMLElement} el
[5] Fix | Delete
* @param {boolean} is_error
[6] Fix | Delete
*/
[7] Fix | Delete
function et_core_page_resource_fallback( el, is_error ) {
[8] Fix | Delete
if ( 'undefined' === typeof is_error ) {
[9] Fix | Delete
// This is an onload event (Internet Explorer doesn't fire 'onerror' for link tags)
[10] Fix | Delete
is_error = el.sheet.cssRules && 0 === el.sheet.cssRules.length;
[11] Fix | Delete
}
[12] Fix | Delete
[13] Fix | Delete
if ( ! is_error ) {
[14] Fix | Delete
return;
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
// Prevent infinite recursion
[18] Fix | Delete
el.onerror = null;
[19] Fix | Delete
el.onload = null;
[20] Fix | Delete
[21] Fix | Delete
if ( el.href ) {
[22] Fix | Delete
[23] Fix | Delete
el.href = et_site_url + '/?et_core_page_resource=' + el.id + et_post_id;
[24] Fix | Delete
} else if ( el.src ) {
[25] Fix | Delete
el.src = et_site_url + '/?et_core_page_resource=' + el.id + et_post_id;
[26] Fix | Delete
}
[27] Fix | Delete
}
[28] Fix | Delete
[29] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function