Added dependency plugins
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
if ( count( $this->settings['profiles'] ) > 0 ) :
|
||||
$profile_name = $is_default_profile ? _x( 'New Profile', 'Default profile loaded', 'wp-migrate-db' ) : $loaded_profile['name'];
|
||||
?>
|
||||
|
||||
<div class="crumbs">
|
||||
|
||||
<a class="crumb" href="<?php echo $this->plugin_base; ?>" class="return-to-profile-selection clearfix">
|
||||
<?php _e( 'Saved Profiles', 'wp-migrate-db' ); ?>
|
||||
</a>
|
||||
|
||||
<span class="crumb"><?php echo esc_html( $profile_name ); ?></span>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
endif;
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
$value = ( isset( $value ) ) ? $value : $this->settings[$key];
|
||||
$class = ( isset( $class ) ) ? 'class="' . $class . '"' : '';
|
||||
$disabled = ( isset( $disabled ) && $disabled ) ? ' disabled' : '';
|
||||
?>
|
||||
<div id="<?php echo $key; ?>-wrap" data-checkbox="<?php echo $key; ?>" class="wpmdb-switch<?php echo $disabled . $value ? ' on' : ''; ?>">
|
||||
<span class="on <?php echo $value ? 'checked' : ''; ?>">ON</span>
|
||||
<span class="off <?php echo ! $value ? 'checked' : ''; ?>">OFF</span>
|
||||
<input type="hidden" name="<?php echo $key; ?>" value="0" />
|
||||
<input type="checkbox" name="<?php echo $key; ?>" value="1" id="<?php echo $key; ?>" <?php checked( $value ); ?> <?php echo $class ?>/>
|
||||
</div>
|
||||
@@ -0,0 +1,46 @@
|
||||
<tr class="wpmdb-setting-title">
|
||||
<td colspan="2"><h3><?php _e( 'Compatibility', 'wp-migrate-db' ); ?></h3></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><?php $this->template( 'checkbox', 'common', array( 'key' => 'plugin-compatibility', 'value' => $plugin_compatibility_checked ) ); ?></td>
|
||||
<td>
|
||||
<h4>
|
||||
<?php _e( 'Plugin Compatibility Mode', 'wp-migrate-db' ); ?> <a href="#" class="general-helper plugin-compatibility-helper js-action-link"></a>
|
||||
<div class="plugin-compatibility-message helper-message bottom">
|
||||
<?php _e( 'Some plugins add a lot of overhead to each request, requiring extra memory and CPU. And some plugins even interfere with migrations and cause them to fail. We recommend only loading plugins that affect migration requests, for example a plugin that hooks into WP Migrate DB.', 'wp-migrate-db' ); ?></br>
|
||||
</div>
|
||||
<span class="setting-status"></span>
|
||||
</h4>
|
||||
<p><?php _e( 'Avoid plugin conflicts and improve performance by not loading plugins for migration requests.', 'wp-migrate-db' ); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="plugin-compatibility-section">
|
||||
<td colspan="2">
|
||||
<div class="indent-wrap expandable-content plugin-compatibility-wrap select-wrap">
|
||||
<select autocomplete="off" class="multiselect" id="selected-plugins" name="selected_plugins[]" multiple="multiple">
|
||||
<?php
|
||||
$blacklist = array_flip( (array) $this->settings['blacklist_plugins'] );
|
||||
foreach ( get_plugins() as $key => $plugin ) {
|
||||
if ( 0 === strpos( $key, 'wp-migrate-db' ) ) {
|
||||
continue;
|
||||
}
|
||||
$selected = ( isset( $blacklist[ $key ] ) ) ? ' selected' : '';
|
||||
printf( '<option value="%s"%s>%s</option>', $key, $selected, $plugin['Name'] );
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<br>
|
||||
<a class="multiselect-select-all js-action-link" href="#"><?php _e( 'Select All', 'wp-migrate-db' ); ?></a>
|
||||
<span class="select-deselect-divider">/</span>
|
||||
<a class="multiselect-deselect-all js-action-link" href="#"><?php _e( 'Deselect All', 'wp-migrate-db' ); ?></a>
|
||||
<span class="select-deselect-divider">/</span>
|
||||
<a class="multiselect-invert-selection js-action-link" href="#"><?php _e( 'Invert Selection', 'wp-migrate-db' ); ?></a>
|
||||
|
||||
<p>
|
||||
<span class="button plugin-compatibility-save"><?php _e( 'Save Changes', 'wp-migrate-db' ); ?></span>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -0,0 +1,6 @@
|
||||
<div class="debug">
|
||||
<h3><?php _e( 'Diagnostic Info & Error Log', 'wp-migrate-db' ); ?></h3>
|
||||
<textarea class="debug-log-textarea" autocomplete="off" readonly></textarea>
|
||||
<a href="<?php echo network_admin_url( $this->plugin_base . '&nonce=' . wp_create_nonce( 'wpmdb-download-log' ) . '&wpmdb-download-log=1' ); ?>" class="button"><?php _ex( 'Download', 'Download to your computer', 'wp-migrate-db' ); ?></a>
|
||||
<a class="button clear-log js-action-link"><?php _e( 'Clear Error Log', 'wp-migrate-db' ); ?></a>
|
||||
</div>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php if ( $this->is_pro ) return; ?>
|
||||
|
||||
<tr class="option-section slider-outer-wrapper max-request-size">
|
||||
<td colspan="2">
|
||||
<div class="clearfix slider-label-wrapper">
|
||||
<div class="slider-label"><span><?php _e( 'Maximum Request Size', 'wp-migrate-db' ); ?></span>
|
||||
<a class="general-helper slider-helper js-action-link" href="#"></a>
|
||||
|
||||
<div class="slider-message helper-message">
|
||||
<?php printf( __( 'We\'ve detected that your server supports requests up to %s, but it\'s possible that your server has limitations that we could not detect. To be on the safe side, we set the default to 1 MB, but you can try throttling it up to get better performance. If you\'re getting a 413 error or having trouble with time outs, try throttling this setting down.', 'wp-migrate-db' ), size_format( $this->get_bottleneck( 'max' ) ) ); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="amount"></div>
|
||||
</div>
|
||||
<div class="slider"></div>
|
||||
</td>
|
||||
</tr>
|
||||
Reference in New Issue
Block a user