PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backup, Restore, Migration & Clone / 4.9.2
WP STAGING – WordPress Backup, Restore, Migration & Clone v4.9.2
4.9.2 4.9.1 4.9.0 4.8.1 trunk 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.10.0 3.2.0 3.3.1 3.3.2 3.3.3 3.4.1 3.4.3 3.5.0 3.6.0 3.7.1 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 4.0.0 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.7.2 4.7.3 4.8.0
wp-staging / views / staging / setup / external-database.php
wp-staging / views / staging / setup Last commit date
custom-directory-desc.php 1 year ago custom-directory.php 2 weeks ago external-database.php 2 weeks ago login-data.php 2 weeks ago
external-database.php
33 lines
1 <?php
2
3 use WPStaging\Staging\Service\AbstractStagingSetup;
4
5 /**
6 * This file is currently used in both FREE and PRO.
7 * @var AbstractStagingSetup $stagingSetup
8 */
9
10 ob_start();
11 ?>
12 <div id="wpstg-external-db-section" class="wpstg-advanced-settings-expanded-section" <?php echo $stagingSetup->getIsOpenDisabledSettingsSectionByDefault() ? '' : 'style="display: none;"' ?>>
13 <div class="wpstg-advanced-settings-expanded-fields wpstg-py-1">
14 <?php $stagingSetup->renderExternalDatabaseSettings() ?>
15 <div class="wpstg-form-group wpstg-text-field wpstg-advanced-settings-link-row wpstg-mt-1">
16 <a href="#" id="wpstg-db-connect"><?php esc_html_e("Test Database Connection", "wp-staging"); ?></a>
17 </div>
18 </div>
19 </div>
20 <?php
21 $content = ob_get_clean();
22
23 $stagingSetup->renderAdvanceSettings(
24 'wpstg-ext-db',
25 esc_html__('Change Database', 'wp-staging'),
26 wp_kses_post(__('You can clone the staging site into a separate database. The Database must be created manually in advance before starting the cloning proccess.<br/><br/><strong>Note:</strong> If there are already tables with the same database prefix and name in this database, the cloning process will be aborted without any further asking!', 'wp-staging')),
27 false,
28 'wpstg-toggle-advance-settings-section',
29 'wpstg-external-db-section',
30 esc_html__('Store the staging site in a different database.', 'wp-staging'),
31 $content
32 );
33