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/embedpre...
File: providers.php
<?php
[0] Fix | Delete
(defined('ABSPATH') && defined('EMBEDPRESS_IS_LOADED')) or die("No direct script access allowed.");
[1] Fix | Delete
[2] Fix | Delete
/**
[3] Fix | Delete
* Declare an associative array that is responsible for mapping additional service providers to its urls.
[4] Fix | Delete
* The key must match the class placed in ./EmbedPress/Providers/ folder, and the values must be a string or
[5] Fix | Delete
* another array listing all url patterns in which the key (a.k.a. the service provider you're adding)
[6] Fix | Delete
* should be triggered.
[7] Fix | Delete
*
[8] Fix | Delete
* @package EmbedPress
[9] Fix | Delete
* @author EmbedPress <help@embedpress.com>
[10] Fix | Delete
* @copyright Copyright (C) 2023 WPDeveloper. All rights reserved.
[11] Fix | Delete
* @license GPLv3 or later
[12] Fix | Delete
* @since 1.0.0
[13] Fix | Delete
*/
[14] Fix | Delete
[15] Fix | Delete
$host_url = parse_url(site_url());
[16] Fix | Delete
[17] Fix | Delete
[18] Fix | Delete
$additionalServiceProviders = [
[19] Fix | Delete
EMBEDPRESS_NAMESPACE . "\\Providers\\GoogleMaps" => ["google.com", "google.com.*", "maps.google.com", "goo.gl", "google.co.*"],
[20] Fix | Delete
EMBEDPRESS_NAMESPACE . "\\Providers\\GoogleDrive" => ["drive.google.com"],
[21] Fix | Delete
EMBEDPRESS_NAMESPACE . "\\Providers\\GoogleDocs" => ["docs.google.com"],
[22] Fix | Delete
EMBEDPRESS_NAMESPACE . "\\Providers\\Twitch" => ["twitch.tv", "clips.twitch.tv"],
[23] Fix | Delete
EMBEDPRESS_NAMESPACE . "\\Providers\\Giphy" => ["giphy.com", "i.giphy.com"],
[24] Fix | Delete
EMBEDPRESS_NAMESPACE . "\\Providers\\Boomplay" => ["boomplay.com"],
[25] Fix | Delete
EMBEDPRESS_NAMESPACE . "\\Providers\\Youtube" => ["youtube.com"],
[26] Fix | Delete
EMBEDPRESS_NAMESPACE . "\\Providers\\OpenSea" => ["opensea.io"],
[27] Fix | Delete
EMBEDPRESS_NAMESPACE . "\\Providers\\NRKRadio" => ["radio.nrk.no", "nrk.no"],
[28] Fix | Delete
EMBEDPRESS_NAMESPACE . "\\Providers\\GitHub" => ["gist.github.com", "github.com"],
[29] Fix | Delete
EMBEDPRESS_NAMESPACE . "\\Providers\\InstagramFeed" => ["instagram.com"],
[30] Fix | Delete
EMBEDPRESS_NAMESPACE . "\\Providers\\Gumroad" => ["*.gumroad.com", "gumroad.com"],
[31] Fix | Delete
EMBEDPRESS_NAMESPACE . "\\Providers\\X" => ["*.x.com", "x.com"],
[32] Fix | Delete
EMBEDPRESS_NAMESPACE . "\\Providers\\Calendly" => ["*.calendly.com", "calendly.com"],
[33] Fix | Delete
EMBEDPRESS_NAMESPACE . "\\Providers\\Gumroad" => ["*.gumroad.com","gumroad.com"],
[34] Fix | Delete
EMBEDPRESS_NAMESPACE . "\\Providers\\Calendly" => ["*.calendly.com","calendly.com"],
[35] Fix | Delete
EMBEDPRESS_NAMESPACE . "\\Providers\\LinkedIn" => ["*.linkedin.com","linkedin.com"],
[36] Fix | Delete
EMBEDPRESS_NAMESPACE . "\\Providers\\SelfHosted" => [$host_url['host'], "*.com", "*.net", "*.org", "*.edu", "*.gov", "*.mil", "*.int", "*.biz", "*.info", "*.jobs", "*.mobi", "*.name", "*.aero", "*.coop", "*.travel", "*.museum", "*.cat", "*.pro", "*.tel", "*.asia", "*.xxx", "*.post", "*.geo", "*.nato", "*.tl", "*.dk"],
[37] Fix | Delete
];
[38] Fix | Delete
[39] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function