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/content-.../inc/freemius/includes/suppleme...
File: fs-essential-functions-1.1.7.1.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* @package Freemius
[2] Fix | Delete
* @copyright Copyright (c) 2015, Freemius, Inc.
[3] Fix | Delete
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
[4] Fix | Delete
* @since 1.1.7
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[8] Fix | Delete
exit;
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* Find the plugin main file path based on any given file inside the plugin's folder.
[13] Fix | Delete
*
[14] Fix | Delete
* @author Vova Feldman (@svovaf)
[15] Fix | Delete
* @since 1.1.7.1
[16] Fix | Delete
*
[17] Fix | Delete
* @param string $file Absolute path to a file inside a plugin's folder.
[18] Fix | Delete
*
[19] Fix | Delete
* @return string
[20] Fix | Delete
*/
[21] Fix | Delete
function fs_find_direct_caller_plugin_file( $file ) {
[22] Fix | Delete
/**
[23] Fix | Delete
* All the code below will be executed once on activation.
[24] Fix | Delete
* If the user changes the main plugin's file name, the file_exists()
[25] Fix | Delete
* will catch it.
[26] Fix | Delete
*/
[27] Fix | Delete
$all_plugins = fs_get_plugins( true );
[28] Fix | Delete
[29] Fix | Delete
$file_real_path = fs_normalize_path( realpath( $file ) );
[30] Fix | Delete
[31] Fix | Delete
// Get active plugin's main files real full names (might be symlinks).
[32] Fix | Delete
foreach ( $all_plugins as $relative_path => $data ) {
[33] Fix | Delete
if ( 0 === strpos( $file_real_path, fs_normalize_path( dirname( realpath( WP_PLUGIN_DIR . '/' . $relative_path ) ) . '/' ) ) ) {
[34] Fix | Delete
if ( '.' !== dirname( trailingslashit( $relative_path ) ) ) {
[35] Fix | Delete
return $relative_path;
[36] Fix | Delete
}
[37] Fix | Delete
}
[38] Fix | Delete
}
[39] Fix | Delete
[40] Fix | Delete
return null;
[41] Fix | Delete
}
[42] Fix | Delete
[43] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function