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.../plugins/wp-smush.../_src/react/bulk
File: media-library-scanner-modal.js
import React, {useEffect, useRef, useState} from "react";
[0] Fix | Delete
import Modal from "../common/modal";
[1] Fix | Delete
import {post} from "../utils/request";
[2] Fix | Delete
import Button from "../common/button";
[3] Fix | Delete
import ProgressBar from "../common/progress-bar";
[4] Fix | Delete
[5] Fix | Delete
const {__} = wp.i18n;
[6] Fix | Delete
[7] Fix | Delete
export default function MediaLibraryScannerModal(
[8] Fix | Delete
{
[9] Fix | Delete
inProgress = false,
[10] Fix | Delete
progress = 0,
[11] Fix | Delete
onClose = () => false,
[12] Fix | Delete
onStart = () => false,
[13] Fix | Delete
onCancel = () => false,
[14] Fix | Delete
focusAfterClose = ''
[15] Fix | Delete
}
[16] Fix | Delete
) {
[17] Fix | Delete
function content() {
[18] Fix | Delete
if (inProgress) {
[19] Fix | Delete
return <>
[20] Fix | Delete
<ProgressBar progress={progress}/>
[21] Fix | Delete
<Button id="wp-smush-cancel-media-library-scan"
[22] Fix | Delete
icon="sui-icon-close"
[23] Fix | Delete
text={__('Cancel', 'wp-smushit')}
[24] Fix | Delete
ghost={true}
[25] Fix | Delete
onClick={onCancel}
[26] Fix | Delete
/>
[27] Fix | Delete
</>;
[28] Fix | Delete
} else {
[29] Fix | Delete
return <>
[30] Fix | Delete
<Button id="wp-smush-start-media-library-scan"
[31] Fix | Delete
icon="sui-icon-play"
[32] Fix | Delete
text={__('Start', 'wp-smushit')}
[33] Fix | Delete
onClick={onStart}
[34] Fix | Delete
/>
[35] Fix | Delete
</>;
[36] Fix | Delete
}
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
return <Modal id="wp-smush-media-library-scanner-modal"
[40] Fix | Delete
title={__('Scan Media Library', 'wp-smushit')}
[41] Fix | Delete
description={__('Scans the media library to detect items to Smush.', 'wp-smushit')}
[42] Fix | Delete
onClose={onClose}
[43] Fix | Delete
focusAfterClose={focusAfterClose}
[44] Fix | Delete
disableCloseButton={inProgress}>
[45] Fix | Delete
{content()}
[46] Fix | Delete
</Modal>;
[47] Fix | Delete
};
[48] Fix | Delete
[49] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function