Dropbox2
6 years ago
Google
6 years ago
checkout-embed
7 years ago
cloudfiles
12 years ago
handlebars
6 years ago
images
9 years ago
jquery.serializeJSON
7 years ago
jstree
6 years ago
labelauty
6 years ago
tether
6 years ago
tether-shepherd
7 years ago
updraftclone
6 years ago
S3.php
6 years ago
S3compat.php
6 years ago
cacert.pem
6 years ago
class-backup-history.php
6 years ago
class-commands.php
6 years ago
class-database-utility.php
6 years ago
class-filesystem-functions.php
6 years ago
class-job-scheduler.php
6 years ago
class-manipulation-functions.php
7 years ago
class-partialfileservlet.php
9 years ago
class-remote-send.php
6 years ago
class-semaphore.php
6 years ago
class-storage-methods-interface.php
6 years ago
class-udrpc.php
6 years ago
class-updraft-dashboard-news.php
6 years ago
class-updraftcentral-updraftplus-commands.php
8 years ago
class-updraftplus-encryption.php
6 years ago
class-wpadmin-commands.php
6 years ago
class-zip.php
6 years ago
ftp.class.php
7 years ago
get-cpanel-quota-usage.pl
12 years ago
google-extensions.php
9 years ago
jquery-ui.custom.css
7 years ago
jquery-ui.custom.min.css
7 years ago
jquery-ui.custom.min.css.map
7 years ago
jquery.blockUI.js
8 years ago
jquery.blockUI.min.js
8 years ago
updraft-admin-common.js
6 years ago
updraft-admin-common.min.js
6 years ago
updraft-notices.php
6 years ago
updraft-restorer-skin-compatibility.php
6 years ago
updraft-restorer-skin.php
6 years ago
updraftcentral.php
7 years ago
updraftplus-clone.php
6 years ago
updraftplus-login.php
7 years ago
updraftplus-notices.php
6 years ago
updraftplus-tour.php
7 years ago
updraftvault.php
6 years ago
updraft-restorer-skin.php
68 lines
| 1 | <?php |
| 2 | |
| 3 | if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed'); |
| 4 | |
| 5 | if (!class_exists('WP_Upgrader_Skin')) require_once(ABSPATH.'wp-admin/includes/class-wp-upgrader.php'); |
| 6 | |
| 7 | abstract class Updraft_Restorer_Skin_Main extends WP_Upgrader_Skin { |
| 8 | |
| 9 | // @codingStandardsIgnoreStart |
| 10 | public function header() {} |
| 11 | public function footer() {} |
| 12 | public function bulk_header() {} |
| 13 | public function bulk_footer() {} |
| 14 | // @codingStandardsIgnoreEnd |
| 15 | |
| 16 | /** |
| 17 | * return error |
| 18 | * |
| 19 | * @param string $error error message |
| 20 | * @return string |
| 21 | */ |
| 22 | public function error($error) { |
| 23 | if (!$error) return; |
| 24 | global $updraftplus; |
| 25 | if (is_wp_error($error)) { |
| 26 | $updraftplus->log_wp_error($error, true); |
| 27 | } elseif (is_string($error)) { |
| 28 | $updraftplus->log($error); |
| 29 | $updraftplus->log($error, 'warning-restore'); |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | protected function updraft_feedback($string) { |
| 34 | |
| 35 | if (isset($this->upgrader->strings[$string])) { |
| 36 | $string = $this->upgrader->strings[$string]; |
| 37 | } |
| 38 | |
| 39 | if (false !== strpos($string, '%')) { |
| 40 | $args = func_get_args(); |
| 41 | $args = array_splice($args, 1); |
| 42 | if ($args) { |
| 43 | $args = array_map('strip_tags', $args); |
| 44 | $args = array_map('esc_html', $args); |
| 45 | $string = vsprintf($string, $args); |
| 46 | } |
| 47 | } |
| 48 | if (empty($string)) return; |
| 49 | |
| 50 | global $updraftplus; |
| 51 | $updraftplus->log_e($string); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | global $updraftplus; |
| 56 | $wp_version = $updraftplus->get_wordpress_version(); |
| 57 | |
| 58 | if (version_compare($wp_version, '5.3', '>=')) { |
| 59 | if (!class_exists('Updraft_Restorer_Skin')) require_once(UPDRAFTPLUS_DIR.'/includes/updraft-restorer-skin-compatibility.php'); |
| 60 | } else { |
| 61 | class Updraft_Restorer_Skin extends Updraft_Restorer_Skin_Main { |
| 62 | |
| 63 | public function feedback($string) { |
| 64 | parent::updraft_feedback($string); |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 |