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

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.../plugins/leadin/scripts/utils
File: contentEmbedInstaller.ts
type ContentEmbedInfoResponse = {
[0] Fix | Delete
success: boolean;
[1] Fix | Delete
data?: {
[2] Fix | Delete
// Empty if user doesn't have permissions or plugin already activated
[3] Fix | Delete
activateAjaxUrl?: string;
[4] Fix | Delete
message: string;
[5] Fix | Delete
};
[6] Fix | Delete
};
[7] Fix | Delete
[8] Fix | Delete
export function startInstall(nonce: string) {
[9] Fix | Delete
const formData = new FormData();
[10] Fix | Delete
const ajaxUrl = (window as any).ajaxurl;
[11] Fix | Delete
formData.append('_wpnonce', nonce);
[12] Fix | Delete
formData.append('action', 'content_embed_install');
[13] Fix | Delete
return fetch(ajaxUrl, {
[14] Fix | Delete
method: 'POST',
[15] Fix | Delete
body: formData,
[16] Fix | Delete
keepalive: true,
[17] Fix | Delete
}).then<ContentEmbedInfoResponse>(res => res.json());
[18] Fix | Delete
}
[19] Fix | Delete
[20] Fix | Delete
export function startActivation(requestUrl: string) {
[21] Fix | Delete
return fetch(requestUrl, {
[22] Fix | Delete
method: 'POST',
[23] Fix | Delete
keepalive: true,
[24] Fix | Delete
}).then<ContentEmbedInfoResponse>(res => res.json());
[25] Fix | Delete
}
[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