Edit File by line
/home/barbar84/www/wp-conte.../plugins/updraftp.../includes/updraftc...
File: temporary-clone-status.php
<?php
[0] Fix | Delete
[1] Fix | Delete
if (!defined('ABSPATH')) die('No direct access allowed');
[2] Fix | Delete
[3] Fix | Delete
class UpdraftPlus_Temporary_Clone_Status {
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* WP is Installed
[7] Fix | Delete
*/
[8] Fix | Delete
const INSTALLED = 1;
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* Data is uploading
[12] Fix | Delete
*/
[13] Fix | Delete
const UPLOADING = 2;
[14] Fix | Delete
[15] Fix | Delete
/**
[16] Fix | Delete
* Data is uploaded and is restoring
[17] Fix | Delete
*/
[18] Fix | Delete
const RESTORING = 3;
[19] Fix | Delete
[20] Fix | Delete
/**
[21] Fix | Delete
* The current status number
[22] Fix | Delete
*
[23] Fix | Delete
* @var int
[24] Fix | Delete
*/
[25] Fix | Delete
public $current_status;
[26] Fix | Delete
[27] Fix | Delete
/**
[28] Fix | Delete
* Constructor for the class.
[29] Fix | Delete
*/
[30] Fix | Delete
public function __construct() {
[31] Fix | Delete
add_action('init', array($this, 'init'));
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
/**
[35] Fix | Delete
* This function is called via the WordPress init action, it will check if the page is not the admin backend and output the clone status
[36] Fix | Delete
*
[37] Fix | Delete
* @return void
[38] Fix | Delete
*/
[39] Fix | Delete
public function init() {
[40] Fix | Delete
if (is_admin() || (defined('WP_CLI') && WP_CLI) || 'GET' != $_SERVER['REQUEST_METHOD']) return;
[41] Fix | Delete
[42] Fix | Delete
$this->output_status_page();
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
/**
[46] Fix | Delete
* Outputs the clone status
[47] Fix | Delete
*
[48] Fix | Delete
* @param bool $die - Defines if should die at the end
[49] Fix | Delete
* @return void
[50] Fix | Delete
*/
[51] Fix | Delete
public function output_status_page($die = true) {
[52] Fix | Delete
$this->current_status = $this->get_status();
[53] Fix | Delete
$this->page_start();
[54] Fix | Delete
echo '<div class="updraftclone_content_container">';
[55] Fix | Delete
[56] Fix | Delete
echo '<img class="updraftclone_logo" alt="UpdraftClone Logo" src="'.trailingslashit(UPDRAFTPLUS_URL).'images/updraftclone_logo_white.png">';
[57] Fix | Delete
echo $this->get_content();
[58] Fix | Delete
?>
[59] Fix | Delete
<div class="status-box">
[60] Fix | Delete
<section class="progress">
[61] Fix | Delete
<div class="progress-item <?php echo $this->get_progress_item_class(self::INSTALLED); ?>">
[62] Fix | Delete
<div class="progress-item__bar"></div>
[63] Fix | Delete
<span class="icon"><?php echo $this->get_progress_item_icon(self::INSTALLED); ?></span>
[64] Fix | Delete
<?php _e('WordPress installed', 'updraftplus'); ?>
[65] Fix | Delete
</div>
[66] Fix | Delete
<div class="progress-item <?php echo $this->get_progress_item_class(self::UPLOADING); ?>">
[67] Fix | Delete
<div class="progress-item__bar"></div>
[68] Fix | Delete
<span class="icon"><?php echo $this->get_progress_item_icon(self::UPLOADING); ?></span>
[69] Fix | Delete
<?php
[70] Fix | Delete
if (self::UPLOADING >= $this->current_status) {
[71] Fix | Delete
_e('Receiving site data', 'updraftplus');
[72] Fix | Delete
} else {
[73] Fix | Delete
_e('Site data received', 'updraftplus');
[74] Fix | Delete
}
[75] Fix | Delete
?>
[76] Fix | Delete
</div>
[77] Fix | Delete
<div class="progress-item <?php echo $this->get_progress_item_class(self::RESTORING); ?>">
[78] Fix | Delete
<div class="progress-item__bar"></div>
[79] Fix | Delete
<span class="icon"><?php echo $this->get_progress_item_icon(self::RESTORING); ?></span>
[80] Fix | Delete
<?php
[81] Fix | Delete
if (self::RESTORING >= $this->current_status) {
[82] Fix | Delete
_e('Deploying site data', 'updraftplus');
[83] Fix | Delete
} else {
[84] Fix | Delete
_e('Site data has been deployed', 'updraftplus');
[85] Fix | Delete
}
[86] Fix | Delete
?>
[87] Fix | Delete
</div>
[88] Fix | Delete
<div class="progress-item">
[89] Fix | Delete
<div class="progress-item__bar"></div>
[90] Fix | Delete
<span class="icon"><?php echo $this->get_progress_item_icon(); ?></span>
[91] Fix | Delete
<?php
[92] Fix | Delete
_e('Clone ready', 'updraftplus');
[93] Fix | Delete
?>
[94] Fix | Delete
</div>
[95] Fix | Delete
</section>
[96] Fix | Delete
<?php echo '<p class="status-description">' . $this->get_status_description() . '</p>'; ?>
[97] Fix | Delete
[98] Fix | Delete
</div>
[99] Fix | Delete
[100] Fix | Delete
<?php
[101] Fix | Delete
echo '</div>';
[102] Fix | Delete
$this->page_end();
[103] Fix | Delete
if ($die) die();
[104] Fix | Delete
}
[105] Fix | Delete
[106] Fix | Delete
/**
[107] Fix | Delete
* This function will output the start of the updraftclone status page
[108] Fix | Delete
*
[109] Fix | Delete
* @return void
[110] Fix | Delete
*/
[111] Fix | Delete
public function page_start() {
[112] Fix | Delete
echo '<!DOCTYPE html>
[113] Fix | Delete
<html xmlns="http://www.w3.org/1999/xhtml" class="wp-toolbar" lang="en-US">
[114] Fix | Delete
<head>
[115] Fix | Delete
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
[116] Fix | Delete
<meta http-equiv="refresh" content="60">
[117] Fix | Delete
<meta name="robots" content="noindex, nofollow">
[118] Fix | Delete
<title>UpdraftClone</title>
[119] Fix | Delete
<style>
[120] Fix | Delete
[121] Fix | Delete
@-webkit-keyframes rotateIcon {
[122] Fix | Delete
[123] Fix | Delete
from {
[124] Fix | Delete
-webkit-transform: rotate(0);
[125] Fix | Delete
transform: rotate(0);
[126] Fix | Delete
}
[127] Fix | Delete
[128] Fix | Delete
to {
[129] Fix | Delete
-webkit-transform: rotate(360deg);
[130] Fix | Delete
transform: rotate(360deg);
[131] Fix | Delete
}
[132] Fix | Delete
[133] Fix | Delete
}
[134] Fix | Delete
[135] Fix | Delete
@keyframes rotateIcon {
[136] Fix | Delete
[137] Fix | Delete
from {
[138] Fix | Delete
-webkit-transform: rotate(0);
[139] Fix | Delete
transform: rotate(0);
[140] Fix | Delete
}
[141] Fix | Delete
[142] Fix | Delete
to {
[143] Fix | Delete
-webkit-transform: rotate(360deg);
[144] Fix | Delete
transform: rotate(360deg);
[145] Fix | Delete
}
[146] Fix | Delete
[147] Fix | Delete
}
[148] Fix | Delete
[149] Fix | Delete
body {
[150] Fix | Delete
background-color: #EDEDED;
[151] Fix | Delete
margin: 0;
[152] Fix | Delete
padding: 20px;
[153] Fix | Delete
}
[154] Fix | Delete
p {
[155] Fix | Delete
padding: 0;
[156] Fix | Delete
margin: 15px 0;
[157] Fix | Delete
line-height: 1.2;
[158] Fix | Delete
}
[159] Fix | Delete
body:before {
[160] Fix | Delete
content: \' \';
[161] Fix | Delete
position: absolute;
[162] Fix | Delete
background: #db6939;
[163] Fix | Delete
display: block;
[164] Fix | Delete
height: 477px;
[165] Fix | Delete
top: 0;
[166] Fix | Delete
left: 0;
[167] Fix | Delete
width: 100%;
[168] Fix | Delete
z-index: 1;
[169] Fix | Delete
}
[170] Fix | Delete
a {
[171] Fix | Delete
color: #ffceb9;
[172] Fix | Delete
}
[173] Fix | Delete
.updraftclone_content_container {
[174] Fix | Delete
position: relative;
[175] Fix | Delete
z-index: 2;
[176] Fix | Delete
margin:auto;
[177] Fix | Delete
margin-top:40px;
[178] Fix | Delete
width:80%;
[179] Fix | Delete
max-width: 520px;
[180] Fix | Delete
text-align:center;
[181] Fix | Delete
color: #ffffff;
[182] Fix | Delete
font-family: Source Sans Pro, Helvetica, Arial, Lucida, sans-serif;
[183] Fix | Delete
font-weight: 300;
[184] Fix | Delete
font-size: 16px;
[185] Fix | Delete
}
[186] Fix | Delete
.updraftclone_logo {
[187] Fix | Delete
width: 50%;
[188] Fix | Delete
}
[189] Fix | Delete
[190] Fix | Delete
.status-box {
[191] Fix | Delete
max-width: 520px;
[192] Fix | Delete
margin: 0 auto;
[193] Fix | Delete
background: #FFF;
[194] Fix | Delete
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
[195] Fix | Delete
color: #43322B;
[196] Fix | Delete
}
[197] Fix | Delete
section.progress {
[198] Fix | Delete
display: -webkit-box;
[199] Fix | Delete
display: -ms-flexbox;
[200] Fix | Delete
display: flex;
[201] Fix | Delete
position: relative;
[202] Fix | Delete
}
[203] Fix | Delete
[204] Fix | Delete
.progress-item {
[205] Fix | Delete
-webkit-box-flex: 1;
[206] Fix | Delete
-ms-flex: 1;
[207] Fix | Delete
flex: 1;
[208] Fix | Delete
position: relative;
[209] Fix | Delete
padding: 10px;
[210] Fix | Delete
padding-bottom: 20px;
[211] Fix | Delete
}
[212] Fix | Delete
[213] Fix | Delete
.progress-item.active {
[214] Fix | Delete
font-weight: bold;
[215] Fix | Delete
}
[216] Fix | Delete
[217] Fix | Delete
.progress-item__bar {
[218] Fix | Delete
height: 10px;
[219] Fix | Delete
position: absolute;
[220] Fix | Delete
top: 0;
[221] Fix | Delete
width: 100%;
[222] Fix | Delete
left: 0;
[223] Fix | Delete
}
[224] Fix | Delete
[225] Fix | Delete
.done .progress-item__bar {
[226] Fix | Delete
background: #43322B;
[227] Fix | Delete
}
[228] Fix | Delete
[229] Fix | Delete
.active .progress-item__bar {
[230] Fix | Delete
background: #43322B;
[231] Fix | Delete
overflow: hidden;
[232] Fix | Delete
}
[233] Fix | Delete
[234] Fix | Delete
.active .progress-item__bar:before {
[235] Fix | Delete
content: \' \';
[236] Fix | Delete
display: block;
[237] Fix | Delete
width: 10px;
[238] Fix | Delete
height: 10px;
[239] Fix | Delete
position: absolute;
[240] Fix | Delete
background: #43322B;
[241] Fix | Delete
right: 0;
[242] Fix | Delete
top: 0;
[243] Fix | Delete
border-top: 10px solid #FFF;
[244] Fix | Delete
border-right: 10px solid #FFF;
[245] Fix | Delete
-webkit-transform: translateY(-5px) translateX(10px) rotate(45deg);
[246] Fix | Delete
transform: translateY(-5px) translateX(10px) rotate(45deg);
[247] Fix | Delete
}
[248] Fix | Delete
[249] Fix | Delete
section.progress:before {
[250] Fix | Delete
content: \' \';
[251] Fix | Delete
position: absolute;
[252] Fix | Delete
display: block;
[253] Fix | Delete
height: 10px;
[254] Fix | Delete
top: 0;
[255] Fix | Delete
left: 0;
[256] Fix | Delete
width: 100%;
[257] Fix | Delete
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.21);
[258] Fix | Delete
}
[259] Fix | Delete
span.icon {
[260] Fix | Delete
display: block;
[261] Fix | Delete
padding-top: 15px;
[262] Fix | Delete
padding-bottom: 10px;
[263] Fix | Delete
}
[264] Fix | Delete
span.icon svg {
[265] Fix | Delete
display: inline-block;
[266] Fix | Delete
max-width: 28px;
[267] Fix | Delete
fill: #C4C4C4;
[268] Fix | Delete
color: currentColor;
[269] Fix | Delete
}
[270] Fix | Delete
[271] Fix | Delete
.done span.icon svg {
[272] Fix | Delete
fill: green;
[273] Fix | Delete
}
[274] Fix | Delete
[275] Fix | Delete
.active span.icon svg {
[276] Fix | Delete
fill: #43322B;
[277] Fix | Delete
-webkit-animation-name: rotateIcon;
[278] Fix | Delete
animation-name: rotateIcon;
[279] Fix | Delete
-webkit-animation-duration: 1.8s;
[280] Fix | Delete
animation-duration: 1.8s;
[281] Fix | Delete
-webkit-animation-iteration-count: infinite;
[282] Fix | Delete
animation-iteration-count: infinite;
[283] Fix | Delete
-webkit-animation-timing-function: linear;
[284] Fix | Delete
animation-timing-function: linear;
[285] Fix | Delete
}
[286] Fix | Delete
[287] Fix | Delete
.progress-item:not(.done):not(.active) {
[288] Fix | Delete
color: #C4C4C4;
[289] Fix | Delete
}
[290] Fix | Delete
.done {
[291] Fix | Delete
color: green;
[292] Fix | Delete
}
[293] Fix | Delete
[294] Fix | Delete
p.status-description {
[295] Fix | Delete
margin: 0;
[296] Fix | Delete
padding: 20px;
[297] Fix | Delete
border-top: 1px solid #EBEBEB;
[298] Fix | Delete
}
[299] Fix | Delete
[300] Fix | Delete
@media (max-width: 520px) {
[301] Fix | Delete
.progress-item:not(.active) {
[302] Fix | Delete
display: none;
[303] Fix | Delete
}
[304] Fix | Delete
}
[305] Fix | Delete
</style>
[306] Fix | Delete
</head>
[307] Fix | Delete
<body>';
[308] Fix | Delete
}
[309] Fix | Delete
[310] Fix | Delete
/**
[311] Fix | Delete
* This function will output the end of the updraftclone status page
[312] Fix | Delete
*
[313] Fix | Delete
* @return void
[314] Fix | Delete
*/
[315] Fix | Delete
public function page_end() {
[316] Fix | Delete
?>
[317] Fix | Delete
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" style="display: none;">
[318] Fix | Delete
<symbol viewBox="0 0 20 20" id="yes-alt"><title>yes-alt</title><g><path d="M10 2c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm-.615 12.66h-1.34l-3.24-4.54 1.34-1.25 2.57 2.4 5.14-5.93 1.34.94-5.81 8.38z"/></g></symbol>
[319] Fix | Delete
<symbol viewBox="0 0 20 20" id="yes"><title>yes</title><g><path d="M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z"/></g></symbol>
[320] Fix | Delete
<symbol viewBox="0 0 20 20" id="update"><title>update</title><g><path d="M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"/></g></symbol>
[321] Fix | Delete
<symbol viewBox="0 0 20 20" id="clock"><title>clock</title><g><path d="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 14c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6zm-.71-5.29c.07.05.14.1.23.15l-.02.02L14 13l-3.03-3.19L10 5l-.97 4.81h.01c0 .02-.01.05-.02.09S9 9.97 9 10c0 .28.1.52.29.71z"/></g></symbol>
[322] Fix | Delete
</svg>
[323] Fix | Delete
</body>
[324] Fix | Delete
</html>
[325] Fix | Delete
<?php
[326] Fix | Delete
}
[327] Fix | Delete
[328] Fix | Delete
/**
[329] Fix | Delete
* This function will get and return the clone status title ready to be displayed on the page
[330] Fix | Delete
*
[331] Fix | Delete
* @return string - the clone status title
[332] Fix | Delete
*/
[333] Fix | Delete
public function get_status_title() {
[334] Fix | Delete
[335] Fix | Delete
$code = "";
[336] Fix | Delete
[337] Fix | Delete
switch ($this->current_status) {
[338] Fix | Delete
case self::INSTALLED:
[339] Fix | Delete
$code = __("WordPress installed", "updraftplus");
[340] Fix | Delete
break;
[341] Fix | Delete
case self::UPLOADING:
[342] Fix | Delete
$code = __("Receiving site data", "updraftplus");
[343] Fix | Delete
break;
[344] Fix | Delete
case self::RESTORING:
[345] Fix | Delete
$code = __("Deploying site data", "updraftplus");
[346] Fix | Delete
break;
[347] Fix | Delete
default:
[348] Fix | Delete
$code = "";
[349] Fix | Delete
break;
[350] Fix | Delete
}
[351] Fix | Delete
[352] Fix | Delete
return $code;
[353] Fix | Delete
}
[354] Fix | Delete
[355] Fix | Delete
/**
[356] Fix | Delete
* This function will get and return the clone status description ready to be displayed on the page
[357] Fix | Delete
*
[358] Fix | Delete
* @return string - the clone status description
[359] Fix | Delete
*/
[360] Fix | Delete
public function get_status_description() {
[361] Fix | Delete
$description = "";
[362] Fix | Delete
[363] Fix | Delete
switch ($this->current_status) {
[364] Fix | Delete
case self::INSTALLED:
[365] Fix | Delete
$description = __('WordPress installed; now awaiting the site data to be sent.', 'updraftplus');
[366] Fix | Delete
break;
[367] Fix | Delete
case self::UPLOADING:
[368] Fix | Delete
$backup_details = $this->get_backup_details();
[369] Fix | Delete
$description = sprintf(__('The sending of the site data has begun. So far %s data archives totalling %s have been received', 'updraftplus'), '<strong>'.$backup_details['sets'].'</strong>', '<strong>'.round($backup_details['uploaded'], 2).' MB</strong>');
[370] Fix | Delete
break;
[371] Fix | Delete
case self::RESTORING:
[372] Fix | Delete
UpdraftPlus_Backup_History::rebuild();
[373] Fix | Delete
$backup_details = $this->get_backup_details();
[374] Fix | Delete
$description = __('The site data has all been received, and its import has begun.', 'updraftplus').' '.sprintf(__('%s archives remain', 'updraftplus'), '<strong>'.$backup_details['sets'].'</strong>');
[375] Fix | Delete
break;
[376] Fix | Delete
default:
[377] Fix | Delete
$description = "(?)";
[378] Fix | Delete
break;
[379] Fix | Delete
}
[380] Fix | Delete
[381] Fix | Delete
return $description;
[382] Fix | Delete
}
[383] Fix | Delete
[384] Fix | Delete
/**
[385] Fix | Delete
* This function will return information about the backup such as the amount of sets and the size of the backup set
[386] Fix | Delete
*
[387] Fix | Delete
* @return array - an array with backup information
[388] Fix | Delete
*/
[389] Fix | Delete
public function get_backup_details() {
[390] Fix | Delete
global $updraftplus;
[391] Fix | Delete
[392] Fix | Delete
$backup_history = UpdraftPlus_Backup_History::get_history();
[393] Fix | Delete
$backupable_entities = $updraftplus->get_backupable_file_entities();
[394] Fix | Delete
$sets = 0;
[395] Fix | Delete
$uploaded = 0;
[396] Fix | Delete
[397] Fix | Delete
foreach ($backupable_entities as $key => $info) {
[398] Fix | Delete
foreach ($backup_history as $backup) {
[399] Fix | Delete
if (isset($backup[$key]) && isset($backup[$key.'-size'])) {
[400] Fix | Delete
$sets += count($backup[$key]);
[401] Fix | Delete
$uploaded += $backup[$key.'-size'];
[402] Fix | Delete
}
[403] Fix | Delete
}
[404] Fix | Delete
}
[405] Fix | Delete
[406] Fix | Delete
$uploaded = round($uploaded / 1048576, 1);
[407] Fix | Delete
[408] Fix | Delete
return array('uploaded' => $uploaded, 'sets' => $sets);
[409] Fix | Delete
}
[410] Fix | Delete
[411] Fix | Delete
/**
[412] Fix | Delete
* This function will get and return the clone content ready to be displayed on the page
[413] Fix | Delete
*
[414] Fix | Delete
* @return string - the clone content
[415] Fix | Delete
*/
[416] Fix | Delete
public function get_content() {
[417] Fix | Delete
$content = '<p>'.__('Your UpdraftClone is still setting up.', 'updraftplus').' '.sprintf(__('You can check the progress here or in %s', 'updraftplus'), '<a href="https://updraftplus.com/my-account/clones/" target="_blank">'.__('your UpdraftPlus.com account', 'updraftplus')).'</a></p>';
[418] Fix | Delete
$content .= '<p><a href="https://updraftplus.com/faq-category/updraftclone/" target="_blank">'.__('To read FAQs/documentation about UpdraftClone, go here.', 'updraftplus').'</a></p>';
[419] Fix | Delete
return $content;
[420] Fix | Delete
}
[421] Fix | Delete
[422] Fix | Delete
/**
[423] Fix | Delete
* This function will work out what stage the clone is in and return the correct status code
[424] Fix | Delete
*
[425] Fix | Delete
* @return int - the clone status code
[426] Fix | Delete
*/
[427] Fix | Delete
public function get_status() {
[428] Fix | Delete
global $updraftplus;
[429] Fix | Delete
[430] Fix | Delete
$backup_history = UpdraftPlus_Backup_History::get_history();
[431] Fix | Delete
[432] Fix | Delete
if (empty($backup_history)) return self::INSTALLED;
[433] Fix | Delete
[434] Fix | Delete
$updraft_dir = trailingslashit($updraftplus->backups_dir_location());
[435] Fix | Delete
[436] Fix | Delete
if (file_exists($updraft_dir.'ready_for_restore')) return self::RESTORING;
[437] Fix | Delete
[438] Fix | Delete
return self::UPLOADING;
[439] Fix | Delete
}
[440] Fix | Delete
[441] Fix | Delete
/**
[442] Fix | Delete
* Get the progress item class
[443] Fix | Delete
*
[444] Fix | Delete
* @param int $number The status number
[445] Fix | Delete
* @return string
[446] Fix | Delete
*/
[447] Fix | Delete
private function get_progress_item_class($number) {
[448] Fix | Delete
return ($number === $this->current_status) ? 'active' : (($number < $this->current_status) ? 'done' : '');
[449] Fix | Delete
}
[450] Fix | Delete
[451] Fix | Delete
/**
[452] Fix | Delete
* Get the progress item icon
[453] Fix | Delete
*
[454] Fix | Delete
* @param int $number The status number
[455] Fix | Delete
* @return string
[456] Fix | Delete
*/
[457] Fix | Delete
private function get_progress_item_icon($number = 1000) {
[458] Fix | Delete
$icon = '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">';
[459] Fix | Delete
$icon .= '<use href="#'.(($number === $this->current_status) ? 'update' : (($number < $this->current_status) ? 'yes' : 'clock')).'" />';
[460] Fix | Delete
$icon .= '</svg>';
[461] Fix | Delete
return $icon;
[462] Fix | Delete
}
[463] Fix | Delete
}
[464] Fix | Delete
[465] Fix | Delete
if (defined('UPDRAFTPLUS_THIS_IS_CLONE') && 1 == UPDRAFTPLUS_THIS_IS_CLONE) {
[466] Fix | Delete
new UpdraftPlus_Temporary_Clone_Status();
[467] Fix | Delete
}
[468] Fix | Delete
[469] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function