. * * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ */ class Ai1wm_Export_Compatibility { public static function execute( $params ) { // Set progress Ai1wm_Status::info( __( 'Checking extensions compatibility...', AI1WM_PLUGIN_NAME ) ); // Get messages $messages = Ai1wm_Compatibility::get( $params ); // Set messages if ( empty( $messages ) ) { return $params; } // Set progress Ai1wm_Status::error( implode( $messages ) ); // Manual export if ( empty( $params['ai1wm_manual_export'] ) ) { if ( function_exists( 'wp_mail' ) ) { // Set recipient $recipient = get_option( 'admin_email', '' ); // Set subject $subject = __( 'Unable to backup your site', AI1WM_PLUGIN_NAME ); // Set message $message = sprintf( __( 'All-in-One WP Migration was unable to backup %s. %s', AI1WM_PLUGIN_NAME ), site_url(), implode( $messages ) ); // Send email wp_mail( $recipient, $subject, $message ); } } exit; } }