Plugin Directory


Ignore:
Timestamp:
10/06/2025 03:23:19 PM (4 months ago)
Author:
DavidAnderson
Message:

Release version 1.25.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • updraftplus/trunk/methods/updraftvault.php

    r3275614 r3373797  
    492492        // Used to decide whether we can afford HTTP calls or not, or would prefer to rely on cached data
    493493        $this->vault_in_config_print = true;
     494
     495        $simplexmlelement_existence_label = '';
     496        if (!apply_filters('updraftplus_vault_simplexmlelement_exists', class_exists('SimpleXMLElement'))) {
     497            $simplexmlelement_existence_label = wp_kses(
     498                $updraftplus_admin->show_double_warning(
     499                    '<strong>'.__('Warning', 'updraftplus').':</strong> '.
     500                    /* translators: 1: Remote storage name, 2: Required module name */
     501                    sprintf(__('Your web server\'s PHP installation does not include a <strong>required</strong> (for %1$s) module %2$s.', 'updraftplus'), 'UpdraftVault', 'SimpleXMLElement').' '.
     502                    __("Please contact your web hosting provider's support and ask for them to enable it.", 'updraftplus'),
     503                    $this->get_id(),
     504                    false
     505                ),
     506                $this->allowed_html_for_content_sanitisation()
     507            );
     508        }
     509
    494510        $properties = array(
    495             'simplexmlelement_existence_label' => !apply_filters('updraftplus_vault_simplexmlelement_exists', class_exists('SimpleXMLElement')) ? wp_kses($updraftplus_admin->show_double_warning('<strong>'.__('Warning', 'updraftplus').':</strong> '.sprintf(__("Your web server's PHP installation does not include a <strong>required</strong> (for %s) module (%s).", 'updraftplus'), 'UpdraftVault', 'SimpleXMLElement').' '.__("Please contact your web hosting provider's support and ask for them to enable it.", 'updraftplus'), $this->get_id(), false), $this->allowed_html_for_content_sanitisation()) : '',
     511            'simplexmlelement_existence_label' => $simplexmlelement_existence_label,
    496512            'curl_existence_label' => wp_kses($updraftplus_admin->curl_check($updraftplus->backup_methods[$this->get_id()], false, $this->get_id().' hidden-in-updraftcentral', false), $this->allowed_html_for_content_sanitisation()),
    497             /* translators: %1$s: anchor opening tag <a>, %2$s: UpdraftVault product name, %3$s: anchor closing tag </a>*/
    498             'storage_long_description' => wp_kses(sprintf(__('%1$s %2$s %3$s gives you encrypted storage integrated into UpdraftPlus so you don’t need to set up third party storage systems.', 'updraftplus'), '<a href="https://teamupdraft.com/updraftplus/updraftvault/?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=updrafvault&utm_creative_format=text" target="_blank">', 'UpdraftVault', '</a>'), $this->allowed_html_for_content_sanitisation()),
     513            /* translators: 1: Anchor opening tag <a>, 2: UpdraftVault product name, 3: Anchor closing tag </a>*/
     514            'storage_long_description' => wp_kses(sprintf(__('%1$s %2$s %3$s gives you encrypted storage integrated into UpdraftPlus so you don’t need to set up third party storage systems.', 'updraftplus'), '<a href="https://teamupdraft.com/updraftplus/updraftvault/?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=updraftvault&utm_creative_format=text" target="_blank">', 'UpdraftVault', '</a>'), $this->allowed_html_for_content_sanitisation()),
    499515            'storage_package_options_label1' => __('Need to get space?', 'updraftplus'),
    500516            'storage_package_options_label2' => __('Show the options', 'updraftplus'),
    501517            'storage_already_registered_label1' => __('Already got space?', 'updraftplus'),
     518            /* translators: %s: Storage provider name */
    502519            'storage_already_registered_label2' => sprintf(__('Connect to your %s account', 'updraftplus'), $updraftplus->backup_methods[$this->get_id()]),
    503520            'storage_already_registered_label3' => __('Connect', 'updraftplus'),
    504521            'storage_long_description2' => __("UpdraftVault is built on top of Amazon's world-leading data-centres, with redundant data storage to achieve 99.999999999% reliability.", 'updraftplus'),
     522            /* translators: %s: Storage provider name */
    505523            'storage_readmore_label' => sprintf(__('Read more about %s here.', 'updraftplus'), $updraftplus->backup_methods[$this->get_id()]),
     524            /* translators: %s: Storage provider name */
    506525            'storage_read_faq_label' => sprintf(__('Read %s documentation here.', 'updraftplus'), 'UpdraftVault'),
    507526            'more_vault_info_landing_url' => $this->get_url('more_vault_info_landing'),
    508527            'more_vault_info_faqs_url' => $this->get_url('more_vault_info_faqs'),
    509             /* translators: %1$s: anchor opening tag <a>, %2$s: UpdraftVault product name, %3$s: anchor closing tag </a>*/
    510             'storage_package_options_label3' => wp_kses(sprintf(__('%1$s %2$s %3$s gives you encrypted storage integrated into UpdraftPlus so you don\'t need to set up third party storage systems.', 'updraftplus'), '<a href="https://teamupdraft.com/updraftplus/updraftvault/?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=updrafvault&utm_creative_format=text" target="_blank">', 'UpdraftVault', '</a>'), $this->allowed_html_for_content_sanitisation()),
     528            /* translators: 1: Anchor opening tag <a>, 2: UpdraftVault product name, 3: Anchor closing tag </a>*/
     529            'storage_package_options_label3' => wp_kses(sprintf(__('%1$s %2$s %3$s gives you encrypted storage integrated into UpdraftPlus so you don\'t need to set up third party storage systems.', 'updraftplus'), '<a href="https://teamupdraft.com/updraftplus/updraftvault/?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=updraftvault&utm_creative_format=text" target="_blank">', 'UpdraftVault', '</a>'), $this->allowed_html_for_content_sanitisation()),
    511530            'start_subscription_button_label' => __('Start Subscription', 'updraftplus'),
     531            /* translators: %s: Subscription size */
    512532            'start_15gb_subscription_button_title' => sprintf(__('Start %s Subscription', 'updraftplus'), '15GB'),
     533            /* translators: %s: Subscription size */
    513534            'start_50gb_subscription_button_title' => sprintf(__('Start %s Subscription', 'updraftplus'), '50GB'),
     535            /* translators: %s: Subscription size */
    514536            'start_250gb_subscription_button_title' => sprintf(__('Start %s Subscription', 'updraftplus'), '250GB'),
    515537            'start_trial_button_label' => __('Start Trial', 'updraftplus'),
     538            /* translators: %s: Trial size */
    516539            'start_trial_button_title' => sprintf(__('Start %s Trial', 'updraftplus'), '5GB'),
    517540            'discount_period_label' => __('or (annual discount)', 'updraftplus'),
    518541            'start_trial_option_label' => __('with the option of', 'updraftplus'),
     542            /* translators: %s: Price */
    519543            'price_5gb_package_label' => sprintf(__('%s per year', 'updraftplus'), '$35'),
     544            /* translators: %s: Price */
    520545            'price_15gb_package_label' => sprintf(__('%s per quarter', 'updraftplus'), '$20'),
     546            /* translators: %s: Price */
    521547            'price_50gb_package_label' => sprintf(__('%s per quarter', 'updraftplus'), '$50'),
     548            /* translators: %s: Price */
    522549            'price_250gb_package_label' => sprintf(__('%s per quarter', 'updraftplus'), '$125'),
    523             'discounted_price_5gb_package_label' => sprintf(__('%s month %s trial', 'updraftplus'), '1', '$1'),
     550            /* translators: 1: Trial duration, 2: Price */
     551            'discounted_price_5gb_package_label' => sprintf(__('%1$s month %2$s trial', 'updraftplus'), '1', '$1'),
     552            /* translators: %s: Price */
    524553            'discounted_price_15gb_package_label' => sprintf(__('%s per year', 'updraftplus'), '$70'),
     554            /* translators: %s: Price */
    525555            'discounted_price_50gb_package_label' => sprintf(__('%s per year', 'updraftplus'), '$175'),
     556            /* translators: %s: Price */
    526557            'discounted_price_250gb_package_label' => sprintf(__('%s per year', 'updraftplus'), '$450'),
     558            /* translators: %s: Subscription size */
    527559            'start_5gb_package_subscription_title' => sprintf(__('Start a %s UpdraftVault Subscription', 'updraftplus'), '5GB'),
     560            /* translators: %s: Subscription size */
    528561            'start_15gb_package_subscription_title' => sprintf(__('Start a %s UpdraftVault Subscription', 'updraftplus'), '15GB'),
     562            /* translators: %s: Subscription size */
    529563            'start_50gb_package_subscription_title' => sprintf(__('Start a %s UpdraftVault Subscription', 'updraftplus'), '50GB'),
     564            /* translators: %s: Subscription size */
    530565            'start_250gb_package_subscription_title' => sprintf(__('Start a %s UpdraftVault Subscription', 'updraftplus'), '250GB'),
    531566            'start_5gb_package_subscription_link' => apply_filters('updraftplus_com_link', $updraftplus->get_url('shop_vault_5')),
     
    534569            'start_250gb_package_subscription_link' => apply_filters('updraftplus_com_link', $updraftplus->get_url('shop_vault_250')),
    535570            'go_back_link_text' => __('Back...', 'updraftplus'),
    536             'go_back_link_label' => sprintf(__('Back to other %s options'), 'Vault'),
     571            /* translators: %s: Storage provider name */
     572            'go_back_link_label' => sprintf(__('Back to other %s options', 'updraftplus'), 'Vault'),
    537573            'current_clean_url' => UpdraftPlus::get_current_clean_url(),
    538             'subscription_payment_details_label' => wp_kses(__("<strong>About the '1 month $1 trial':</strong> Pay just $1 for the first month of an annual subscription.", 'updraftplus').' '.__('Cancel at any time.', 'updraftplus').' '.__('After 1 month, your subscription will renew at a cost of $35 and every 12 months thereafter until you cancel.', 'updraftplus').' <a href="https://teamupdraft.com/updraftplus/updraftvault/?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=about-updrafvault&utm_creative_format=text" target="_blank">'.__('More about UpdraftVault', 'updraftplus').'</a>', $this->allowed_html_for_content_sanitisation()),
     574            'subscription_payment_details_label' => wp_kses(__("<strong>About the '1 month $1 trial':</strong> Pay just $1 for the first month of an annual subscription.", 'updraftplus').' '.__('Cancel at any time.', 'updraftplus').' '.__('After 1 month, your subscription will renew at a cost of $35 and every 12 months thereafter until you cancel.', 'updraftplus').' <a href="https://teamupdraft.com/updraftplus/updraftvault/?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=about-updraftvault&utm_creative_format=text" target="_blank">'.__('More about UpdraftVault', 'updraftplus').'</a>', $this->allowed_html_for_content_sanitisation()),
    539575            'connect_to_updraftplus_label' => __('Enter your UpdraftPlus.Com email / password here to connect:', 'updraftplus'),
     576            /* translators: %s: Website name */
    540577            'input_email_title' => sprintf(__('Please enter your %s email address', 'updraftplus'), 'UpdraftPlus.com'),
    541578            'input_email_placeholder' => __('Email', 'updraftplus'),
     579            /* translators: %s: Website name */
    542580            'input_password_title' => sprintf(__('Please enter your %s password', 'updraftplus'), 'UpdraftPlus.com'),
    543581            'input_password_placeholder' => __('Password', 'updraftplus'),
    544             'button_connect_title' => sprintf(__('Connect to your %s'), 'Vault'),
     582            /* translators: %s: Storage provider name */
     583            'button_connect_title' => sprintf(__('Connect to your %s', 'updraftplus'), 'Vault'),
    545584            'button_connect_label' => __('Connect', 'updraftplus'),
    546585            'forgotten_password_label' => __("Don't know your email address, or forgotten your password?", 'updraftplus'),
     
    651690        $quota_transient_used = $this->quota_transient_used ? '(via transient)' : '';
    652691        $this->log("Error: Quota exhausted (used=$used, total=$total, needed=$needed) $quota_transient_used");
    653         $this->log(sprintf(__('Error: you have insufficient storage quota available (%s) to upload this archive (%s) (%s).', 'updraftplus'), round(($total-$used)/1048576, 2).' MB', round($needed/1048576, 2).' MB', $quota_transient_used).' '.__('You can get more quota here', 'updraftplus').': '.$this->get_url('get_more_quota'), 'error');
     692        $this->log(
     693            sprintf(
     694                /* translators: 1: Available storage, 2: Required storage, 3: Quota usage */
     695                __('Error: you have insufficient storage quota available (%1$s) to upload this archive (%2$s) (%3$s).', 'updraftplus'),
     696                round(($total-$used)/1048576, 2).' MB',
     697                round($needed/1048576, 2).' MB',
     698                $quota_transient_used
     699            ).' '.__('You can get more quota here', 'updraftplus').': '.$this->get_url('get_more_quota'),
     700            'error'
     701        );
    654702        // The transient wasn't intended for 100% precision when that matters (e.g. out-of-quota), so we delete it - a fresh calculation will take place on the next operation
    655703        delete_transient('updraftvault_quota_numeric');
     
    914962
    915963            if (preg_match('/has banned your IP address \(([\.:0-9a-f]+)\)/', $result['body'], $matches)) {
     964                /* translators: %s: Blocked IP address */
    916965                return new WP_Error('banned_ip', sprintf(__("UpdraftPlus.com has responded with 'Access Denied'.", 'updraftplus').'<br>'.__("It appears that your web server's IP Address (%s) is blocked.", 'updraftplus').' '.__('This most likely means that you share a webserver with a hacked website that has been used in previous attacks.', 'updraftplus').'<br> <a href="'.apply_filters("updraftplus_com_link", "https://updraftplus.com/unblock-ip-address/").'" target="_blank">'.__('To remove the block, please go here.', 'updraftplus').'</a> ', $matches[1]));
    917966            } else {
     967                /* translators: %s: API response data */
    918968                return new WP_Error('unknown_response', sprintf(__('UpdraftPlus.Com returned a response which we could not understand (data: %s)', 'updraftplus'), wp_remote_retrieve_body($result)));
    919969            }
     
    9601010                if (!empty($response['authproblem'])) {
    9611011                    if ('gettempcreds_exception2' == $response['authproblem'] || 'gettempcreds_exception2' == $response['authproblem']) {
    962                         $authfail_error = new WP_Error('authfailed', __('An error occurred while fetching your Vault credentials.', 'updraftplus').' '.__('Please try again after a few minutes.'));
     1012                        $authfail_error = new WP_Error('authfailed', __('An error occurred while fetching your Vault credentials.', 'updraftplus').' '.__('Please try again after a few minutes.', 'updraftplus'));
    9631013                    } else {
    964                         $authfail_error = new WP_Error('authfailed', __('An unknown error occurred while connecting to Vault.', 'updraftplus').' '.__('Please try again.'));
     1014                        $authfail_error = new WP_Error(
     1015                            'authfailed',
     1016                            __('An unknown error occurred while connecting to Vault.', 'updraftplus').' '.
     1017                            __('Please try again.')// phpcs:ignore WordPress.WP.I18n.MissingArgDomain -- The string exists within the WordPress core.
     1018                        );
    9651019                    }
    9661020                    return $authfail_error;
Note: See TracChangeset for help on using the changeset viewer.