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/wp-conte.../plugins/wpforms-.../src/Lite/Admin
File: ConnectSkin.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace WPForms\Lite\Admin;
[2] Fix | Delete
[3] Fix | Delete
use WPForms\Helpers\PluginSilentUpgraderSkin;
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* WPForms Connect Skin.
[7] Fix | Delete
*
[8] Fix | Delete
* WPForms Connect is our service that makes it easy for non-techy users to
[9] Fix | Delete
* upgrade to WPForms Pro without having to manually install WPForms Pro plugin.
[10] Fix | Delete
*
[11] Fix | Delete
* @since 1.5.5
[12] Fix | Delete
* @since 1.5.6.1 Extend PluginSilentUpgraderSkin and clean up the class.
[13] Fix | Delete
*/
[14] Fix | Delete
class ConnectSkin extends PluginSilentUpgraderSkin {
[15] Fix | Delete
[16] Fix | Delete
/**
[17] Fix | Delete
* Instead of outputting HTML for errors, json_encode the errors and send them
[18] Fix | Delete
* back to the Ajax script for processing.
[19] Fix | Delete
*
[20] Fix | Delete
* @since 1.5.5
[21] Fix | Delete
*
[22] Fix | Delete
* @param array $errors Array of errors with the install process.
[23] Fix | Delete
*/
[24] Fix | Delete
public function error( $errors ) {
[25] Fix | Delete
[26] Fix | Delete
if ( ! empty( $errors ) ) {
[27] Fix | Delete
echo \wp_json_encode(
[28] Fix | Delete
[
[29] Fix | Delete
'error' => \esc_html__( 'There was an error installing WPForms Pro. Please try again.', 'wpforms-lite' ),
[30] Fix | Delete
]
[31] Fix | Delete
);
[32] Fix | Delete
die;
[33] Fix | Delete
}
[34] Fix | Delete
}
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function