public function __construct()
{
/**
* Raise the `memory_limit` and `max_execution time`
*
* Respects the WP_MAX_MEMORY_LIMIT Constant and the `admin_memory_limit`
* filter.
*/
@ini_set('memory_limit', apply_filters('admin_memory_limit', WP_MAX_MEMORY_LIMIT));
@set_time_limit(0);
// Set a custom error handler so we can track errors
set_error_handler(array($this, 'error_handler'));
}
/** * Set the default backup filename. */ public function __construct() { parent::__construct(); $this->set_backup_filename(implode('-', array(str_ireplace(array('http://', 'https://', 'www'), '', home_url()), 'backup', current_time('Y-m-d-H-i-s'))) . '.zip'); $this->excludes = new Excludes(); }