Plugin Directory

Changeset 3032328


Ignore:
Timestamp:
02/06/2024 05:24:56 PM (23 months ago)
Author:
andreamk
Message:

Staging version 1.5.8.1

Location:
duplicator
Files:
1139 added
7 edited

Legend:

Unmodified
Added
Removed
  • duplicator/trunk/define.php

    r3019951 r3032328  
    1212
    1313if (function_exists('plugin_dir_url')) {
    14     define('DUPLICATOR_VERSION', '1.5.8');
     14    define('DUPLICATOR_VERSION', '1.5.8.1');
    1515    define('DUPLICATOR_PLUGIN_URL', plugin_dir_url(__FILE__));
    1616    define('DUPLICATOR_SITE_URL', get_site_url());
  • duplicator/trunk/duplicator.php

    r3019951 r3032328  
    55 * Plugin URI: https://duplicator.com/
    66 * Description: Migrate and backup a copy of your WordPress files and database. Duplicate and move a site from one location to another quickly.
    7  * Version: 1.5.8
     7 * Version: 1.5.8.1
    88 * Requires at least: 4.9
    99 * Tested up to: 6.4
  • duplicator/trunk/installer/dup-installer/main.installer.php

    r3019951 r3032328  
    3535}
    3636
    37 define('DUPX_VERSION', '1.5.8');
     37define('DUPX_VERSION', '1.5.8.1');
    3838define('DUPX_INIT', str_replace('\\', '/', dirname(__FILE__)));
    3939define('DUPX_ROOT', preg_match('/^[\\\\\/]?$/', dirname(DUPX_INIT)) ? '/' : dirname(DUPX_INIT));
  • duplicator/trunk/src/Utils/Help/Help.php

    r3019951 r3032328  
    209209        for ($i = 1; $i <= $maxPages; $i++) {
    210210            $endpointUrl .= '&page=' . $i;
    211             $response     = wp_remote_get($endpointUrl);
     211            $response     = wp_remote_get(
     212                $endpointUrl,
     213                ['timeout' => 15]
     214            );
    212215            if (is_wp_error($response)) {
    213216                DUP_Log::Trace("Failed to load from API: {$endpointUrl}");
  • duplicator/trunk/src/Views/DashboardWidget.php

    r2929695 r3032328  
    3838    public static function addDashboardWidget()
    3939    {
     40        if (!current_user_can('administrator')) {
     41            return;
     42        }
     43
    4044        wp_add_dashboard_widget(
    4145            'duplicator_dashboard_widget',
  • duplicator/trunk/template/mocks/storage/storage.php

    r2990955 r3032328  
    158158            e.preventDefault();
    159159            let btn = $('#dup-storage-upgrade-btn');
    160             let baseUrl = "<?php echo Upsell::getCampaignUrl($tplData['utm_medium'], 'Popup Upgrade Now'); ?>";
     160            let baseUrl = "<?php echo Upsell::getCampaignUrl('storage-page', 'Popup Upgrade Now'); ?>";
    161161            let url = baseUrl + '&utm_term=New+Storage';
    162162
  • duplicator/trunk/template/parts/help/category-list.php

    r3019951 r3032328  
    2121/** @var Category[] $categories */
    2222$categories = $tplData['categories'];
    23 ?>
    24 <ul class="duplicator-help-category-list">
    25 <?php foreach ($categories as $category) : ?>
    26     <li class="duplicator-help-category">
    27         <header>
    28             <i class="fa fa-folder-open"></i>
    29             <span><?php echo esc_html($category->getName()); ?></span>
    30             <i class="fa fa-angle-right"></i>
    31         </header>
    32         <?php if (count($category->getChildren()) > 0) { ?>
    33             <?php $tplMng->render('parts/help/category-list', ['categories' => $category->getChildren()]);
    34         } ?>
    35         <?php if ($category->getArticleCount() > 0) : ?>
    36             <?php $tplMng->render(
    37                 'parts/help/article-list',
    38                 [
    39                     'articles'   => Help::getInstance()->getArticlesByCategory($category->getId()),
    40                     'list_class' => 'duplicator-help-article-list',
    41                 ]
    42             ); ?>
    43         <?php endif; ?>
    44     </li>
    45 <?php endforeach; ?>
     23if (empty($categories)) : ?>
     24    <p>
     25        <?php
     26            printf(
     27                esc_html_x(
     28                    'Could not fetch help information. Please try again later or visit the %1$sonline docs%2$s.',
     29                    '%1$s and %2$s are the opening and closing tags for the link to the online docs.',
     30                    'duplicator-pro'
     31                ),
     32                '<a href="' . esc_url(DUPLICATOR_BLOG_URL . 'knowledge-base') . '" target="_blank">',
     33                '</a>'
     34            );
     35        ?>
     36    </p>
     37<?php else : ?>
     38    <ul class="duplicator-help-category-list">
     39    <?php foreach ($categories as $category) : ?>
     40        <li class="duplicator-help-category">
     41            <header>
     42                <i class="fa fa-folder-open"></i>
     43                <span><?php echo esc_html($category->getName()); ?></span>
     44                <i class="fa fa-angle-right"></i>
     45            </header>
     46            <?php if (count($category->getChildren()) > 0) { ?>
     47                <?php $tplMng->render('parts/help/category-list', ['categories' => $category->getChildren()]);
     48            } ?>
     49            <?php if ($category->getArticleCount() > 0) : ?>
     50                <?php $tplMng->render(
     51                    'parts/help/article-list',
     52                    [
     53                        'articles'   => Help::getInstance()->getArticlesByCategory($category->getId()),
     54                        'list_class' => 'duplicator-help-article-list',
     55                    ]
     56                ); ?>
     57            <?php endif; ?>
     58        </li>
     59    <?php endforeach; ?>
     60<?php endif; ?>
    4661</ul>
Note: See TracChangeset for help on using the changeset viewer.