cron-setting.php
5 days ago
custom-directory.php
5 days ago
directory-navigation.php
2 months ago
exclude-settings.php
6 months ago
external-database.php
5 days ago
login-data.php
5 days ago
mail-setting.php
5 days ago
plugins-update.php
5 days ago
process-lock.php
1 year ago
scan.php
2 months ago
start.php
3 weeks ago
symlink-uploads.php
5 days ago
update.php
1 year ago
plugins-update.php
40 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * This file is currently being called for the both FREE and PRO version: |
| 5 | * src/views/clone/ajax/scan.php:64 |
| 6 | * |
| 7 | * @var \WPStaging\Backend\Modules\Jobs\Scan $scan |
| 8 | * @var stdClass $options |
| 9 | * @var boolean $isPro |
| 10 | * |
| 11 | * @see \WPStaging\Backend\Modules\Jobs\Scan::start For details on $options. |
| 12 | */ |
| 13 | |
| 14 | |
| 15 | use WPStaging\Framework\Facades\UI\Checkbox; |
| 16 | |
| 17 | $settingsEnabled = true; |
| 18 | |
| 19 | if (!$isPro) { |
| 20 | $settingsEnabled = false; |
| 21 | } |
| 22 | |
| 23 | |
| 24 | $isAutoUpdatePlugins = false; |
| 25 | if ($isPro && !empty($options->current)) { |
| 26 | $isAutoUpdatePlugins = isset($options->existingClones[$options->current]['isAutoUpdatePlugins']) ? (bool) $options->existingClones[$options->current]['isAutoUpdatePlugins'] : false; |
| 27 | } ?> |
| 28 | <div class="wpstg--advanced-settings--checkbox"> |
| 29 | <label for="wpstg_auto_update_plugins"><?php esc_html_e('Auto Update Plugins', 'wp-staging'); ?></label> |
| 30 | <?php Checkbox::render('wpstg_auto_update_plugins', 'wpstg_auto_update_plugins', 'true', $isAutoUpdatePlugins, ['isDisabled' => !$settingsEnabled]); ?> |
| 31 | <span class="wpstg--tooltip"> |
| 32 | <img class="wpstg--dashicons" src="<?php echo esc_url($scan->getInfoIcon()); ?>" alt="info" /> |
| 33 | <span class="wpstg--tooltiptext"> |
| 34 | <?php esc_html_e('Automatically updates all plugins on the staging site to the latest versions immediately after you have created the staging site. You can then test the staging site to find out if all plugins work as expected and if your site does not trigger any errors.', 'wp-staging'); ?> |
| 35 | <br /> <br /> |
| 36 | <b><?php esc_html_e('You will receive an e-mail and slack notification as soon as the staging site has been updated. (If activated in WP Staging settings)', 'wp-staging');?> |
| 37 | </span> |
| 38 | </span> |
| 39 | </div> |
| 40 |