| Server IP : 31.214.178.22 / Your IP : 216.73.216.223 Web Server : Apache System : Linux hostingsrv5.dondominio.com 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 User : ( 296031) PHP Version : 8.5.13 Disable Function : system,passthru,popen,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,exec,ini_alter,show_source,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,mail,eval MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /hosting/www/tecobe.es/public/wp-content/themes/Divi/core/components/ |
Upload File : |
<?php
/**
* Plugin Name: ET Support Center :: Must-Use Plugins Autoloader
* Plugin URI: http://www.elegantthemes.com
* Description: This plugin enables the Elegant Themes Support Center to provide more consistent functionality when Safe Mode is active.
* Author: Elegant Themes
* Author URI: http://www.elegantthemes.com
* License: GPLv2 or later
*
* @package ET\Core\SupportCenter\SafeModeDisablePlugins
* @author Elegant Themes <http://www.elegantthemes.com>
* @license GNU General Public License v2 <http://www.gnu.org/licenses/gpl-2.0.html>
*/
// The general idea here is loosely based on <https://codex.wordpress.org/Must_Use_Plugins#Autoloader_Example>.
// Quick exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// We only want to load these MU Plugins if Support Center is installed
$support_center_installed = get_option( 'et_support_center_installed' );
if ( $support_center_installed ) {
// Compile a list of plugins in the `mu-plugins/et-safe-mode` directory
// (see `$pathname_to` in `ET_Core_SupportCenter::maybe_add_mu_autoloader()`)
if ( $mu_plugins = glob( dirname( __FILE__ ) . '/et-safe-mode/*.php' ) ) {
// Verbose logging: only log if `wp-config.php` has defined `ET_DEBUG='support_center'`
$DEBUG_ET_SUPPORT_CENTER = defined( 'ET_DEBUG' ) && 'support_center' === ET_DEBUG;
// Loop through the list of plugins and require each in turn
foreach ( $mu_plugins as $plugin ) {
if ( file_exists( $plugin ) ) {
if ( $DEBUG_ET_SUPPORT_CENTER ) {
error_log( 'ET Support Center: loading mu-plugin: ' . $plugin );
}
require_once( $plugin );
}
}
}
}