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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/interact.../src/Plugin
File: Assets.php
* @param string $script_id
[500] Fix | Delete
* @return void
[501] Fix | Delete
*/
[502] Fix | Delete
public function async_script_tag( $script_id ) {
[503] Fix | Delete
add_filter(
[504] Fix | Delete
'script_loader_tag',
[505] Fix | Delete
function( $tag, $handle, $src ) use ( $script_id ) {
[506] Fix | Delete
[507] Fix | Delete
// check against our registered script handle
[508] Fix | Delete
if ( $script_id === $handle ) {
[509] Fix | Delete
[510] Fix | Delete
if ( strpos( $tag, 'async' ) === false ) {
[511] Fix | Delete
// add attributes of your choice
[512] Fix | Delete
$tag = str_replace( '<script ', '<script async=\'async\' ', $tag );
[513] Fix | Delete
}
[514] Fix | Delete
}
[515] Fix | Delete
return $tag;
[516] Fix | Delete
},
[517] Fix | Delete
31, // async for WordPress plugin uses 20
[518] Fix | Delete
3
[519] Fix | Delete
);
[520] Fix | Delete
}
[521] Fix | Delete
}
[522] Fix | Delete
[523] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function