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.../themes/Divi/core/componen...
File: SupportCenterMUAutoloader.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Plugin Name: ET Support Center :: Must-Use Plugins Autoloader
[2] Fix | Delete
* Plugin URI: http://www.elegantthemes.com
[3] Fix | Delete
* Description: This plugin enables the Elegant Themes Support Center to provide more consistent functionality when Safe Mode is active.
[4] Fix | Delete
* Author: Elegant Themes
[5] Fix | Delete
* Author URI: http://www.elegantthemes.com
[6] Fix | Delete
* License: GPLv2 or later
[7] Fix | Delete
*
[8] Fix | Delete
* @package ET\Core\SupportCenter\SafeModeDisablePlugins
[9] Fix | Delete
* @author Elegant Themes <http://www.elegantthemes.com>
[10] Fix | Delete
* @license GNU General Public License v2 <http://www.gnu.org/licenses/gpl-2.0.html>
[11] Fix | Delete
*/
[12] Fix | Delete
[13] Fix | Delete
// The general idea here is loosely based on <https://codex.wordpress.org/Must_Use_Plugins#Autoloader_Example>.
[14] Fix | Delete
[15] Fix | Delete
// Quick exit if accessed directly
[16] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[17] Fix | Delete
exit;
[18] Fix | Delete
}
[19] Fix | Delete
[20] Fix | Delete
// We only want to load these MU Plugins if Support Center is installed
[21] Fix | Delete
$support_center_installed = get_option( 'et_support_center_installed' );
[22] Fix | Delete
[23] Fix | Delete
if ( $support_center_installed ) {
[24] Fix | Delete
// Compile a list of plugins in the `mu-plugins/et-safe-mode` directory
[25] Fix | Delete
// (see `$pathname_to` in `ET_Core_SupportCenter::maybe_add_mu_autoloader()`)
[26] Fix | Delete
if ( $mu_plugins = glob( dirname( __FILE__ ) . '/et-safe-mode/*.php' ) ) {
[27] Fix | Delete
// Verbose logging: only log if `wp-config.php` has defined `ET_DEBUG='support_center'`
[28] Fix | Delete
$DEBUG_ET_SUPPORT_CENTER = defined( 'ET_DEBUG' ) && 'support_center' === ET_DEBUG;
[29] Fix | Delete
[30] Fix | Delete
// Loop through the list of plugins and require each in turn
[31] Fix | Delete
foreach ( $mu_plugins as $plugin ) {
[32] Fix | Delete
if ( file_exists( $plugin ) ) {
[33] Fix | Delete
if ( $DEBUG_ET_SUPPORT_CENTER ) {
[34] Fix | Delete
error_log( 'ET Support Center: loading mu-plugin: ' . $plugin );
[35] Fix | Delete
}
[36] Fix | Delete
require_once( $plugin );
[37] Fix | Delete
}
[38] Fix | Delete
}
[39] Fix | Delete
}
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function