ascvh@#%(^-^)V ?host,ip,port,protocol,title,domain,country,city,link,org ???à JFIF  x x ?? C         ?? C   ?à   " ??     ?? μ  } !1AQa "q2?‘?#B±áR?e$3br? %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz??…???‰?’“”?–—???¢£¤¥|§¨?a23′μ?·?1o??????èéêòó???×?ùúáa?????èéê?òó???÷?ùú??     ?? μ   w !1AQ aq"2?B‘?±á #3Rebr?{ gilour

File "class-updraftcentral-wp-upgrader.php"

Full Path: /home/zcziejy/ryadselyen/plugins/wp-optimize/central/classes/class-updraftcentral-wp-upgrader.php
File size: 2.01 KB
MIME-type: text/x-php
Charset: utf-8

<?php

if (!defined('ABSPATH') || !defined('UPDRAFTCENTRAL_CLIENT_DIR')) die('No access.');

/**
 * The extended class of Plugin_Upgrader that is mostly used for overriding some of the parent methods to short-circuit their native behaviour or to manipulate some data, parameters and/or method arguments
 */
class UpdraftCentral_Plugin_Upgrader extends Plugin_Upgrader {

	/**
	 * Run an upgrade/installation
	 *
	 * @param Array $options {
	 * Array or string of arguments for upgrading/installing a package.
	 *
	 * @type bool $clear_destination Whether to delete any files already in the destination folder. Default false. (since 2.8.0)
	 * }
	 *
	 * @return Array|False|WP_Error The result from self::install_package() on success, otherwise a WP_Error,
	 *                              or false if unable to connect to the filesystem.
	 */
	public function run($options) {
		$options['clear_destination'] = true; // force overwritting the existing one, in case WP < 5.5.0 is in use where "overwrite_package" parameter doesn't exist
		return parent::run($options);
	}
}

/**
 * The extended class of Plugin_Upgrader that is mostly used for overriding some of the parent methods to short-circuit their native behaviour or to manipulate some data, parameters and/or method arguments
 */
class UpdraftCentral_Theme_Upgrader extends Theme_Upgrader {

	/**
	 * Run an upgrade/installation
	 *
	 * @param Array $options {
	 *     Array or string of arguments for upgrading/installing a package.
	 *
	 * @type bool $clear_destination Whether to delete any files already in the destination folder. Default false. (since 2.8.0)
	 * }
	 *
	 * @return Array|False|WP_Error The result from self::install_package() on success, otherwise a WP_Error,
	 *                              or false if unable to connect to the filesystem.
	 */
	public function run($options) {
		$options['clear_destination'] = true; // force overwritting the existing one, in case WP < 5.5.0 is in use where "overwrite_package" parameter doesn't exist
		return parent::run($options);
	}
}