cron-setting.php
4 months ago
custom-directory.php
1 month ago
directory-navigation.php
1 week ago
exclude-settings.php
4 months ago
external-database.php
2 months ago
login-data.php
3 months ago
mail-setting.php
4 months ago
plugins-update.php
1 year ago
process-lock.php
1 year ago
scan.php
1 week ago
start.php
1 year ago
symlink-uploads.php
1 year 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 | // Settings Enabled by default |
| 15 | use WPStaging\Framework\Facades\UI\Checkbox; |
| 16 | |
| 17 | $settingsEnabled = true; |
| 18 | // New staging site. Mails Sending is checked by default. |
| 19 | if (!$isPro) { |
| 20 | $settingsEnabled = false; |
| 21 | } |
| 22 | |
| 23 | // Only change default check status when clone options exists plugin is PRO |
| 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 |