Edit File by line
/home/barbar84/www/wp-conte.../plugins/wp-smush.../app/views/tools
File: meta-box.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Tools meta box.
[2] Fix | Delete
*
[3] Fix | Delete
* @since 3.2.1
[4] Fix | Delete
* @package WP_Smush
[5] Fix | Delete
*
[6] Fix | Delete
* @var array $settings
[7] Fix | Delete
* @var array $settings_data
[8] Fix | Delete
* @var array $grouped_settings
[9] Fix | Delete
* @var int $backups_count
[10] Fix | Delete
*/
[11] Fix | Delete
[12] Fix | Delete
if ( ! defined( 'WPINC' ) ) {
[13] Fix | Delete
die;
[14] Fix | Delete
}
[15] Fix | Delete
[16] Fix | Delete
?>
[17] Fix | Delete
[18] Fix | Delete
<form id="wp-smush-settings-form" method="post">
[19] Fix | Delete
<input type="hidden" name="setting_form" id="setting_form" value="tools">
[20] Fix | Delete
<?php if ( is_multisite() && is_network_admin() ) : ?>
[21] Fix | Delete
<input type="hidden" name="setting-type" value="network">
[22] Fix | Delete
<?php endif; ?>
[23] Fix | Delete
[24] Fix | Delete
<?php
[25] Fix | Delete
foreach ( $settings_data as $name => $values ) {
[26] Fix | Delete
// If not CDN setting - skip.
[27] Fix | Delete
if ( ! in_array( $name, $grouped_settings, true ) ) {
[28] Fix | Delete
continue;
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
$label = ! empty( $settings_data[ $name ]['short_label'] ) ? $settings_data[ $name ]['short_label'] : $settings_data[ $name ]['label'];
[32] Fix | Delete
[33] Fix | Delete
// Show settings option.
[34] Fix | Delete
$this->settings_row( WP_SMUSH_PREFIX . $name, $label, $name, $settings[ $name ] );
[35] Fix | Delete
}
[36] Fix | Delete
?>
[37] Fix | Delete
[38] Fix | Delete
<div class="sui-box-settings-row <?php echo WP_Smush::is_pro() ? '' : 'sui-disabled'; ?>">
[39] Fix | Delete
<div class="sui-box-settings-col-1">
[40] Fix | Delete
<span class="<?php echo WP_Smush::is_pro() ? 'sui-settings-label' : 'sui-settings-label-with-tag'; ?>">
[41] Fix | Delete
<?php echo esc_html( $settings_data['bulk_restore']['short_label'] ); ?>
[42] Fix | Delete
<?php if ( ! WP_Smush::is_pro() ) : ?>
[43] Fix | Delete
<span class="sui-tag sui-tag-pro"><?php esc_html_e( 'Pro', 'wp-smushit' ); ?></span>
[44] Fix | Delete
<?php endif; ?>
[45] Fix | Delete
</span>
[46] Fix | Delete
<span class="sui-description"><?php echo wp_kses_post( $settings_data['bulk_restore']['desc'] ); ?></span>
[47] Fix | Delete
</div>
[48] Fix | Delete
[49] Fix | Delete
<div class="sui-box-settings-col-2">
[50] Fix | Delete
<button type="button" class="sui-button sui-button-ghost" onclick="WP_Smush.restore.init()" <?php disabled( ! $backups_count ); ?>>
[51] Fix | Delete
<i class="sui-icon-undo" aria-hidden="true"></i>
[52] Fix | Delete
<?php esc_html_e( 'Restore Thumbnails', 'wp-smushit' ); ?>
[53] Fix | Delete
</button>
[54] Fix | Delete
<span class="sui-description">
[55] Fix | Delete
<?php
[56] Fix | Delete
printf(
[57] Fix | Delete
/* translators: %1$s - a tag, %2$s - closing a tag */
[58] Fix | Delete
wp_kses( 'Note: This feature uses your original image uploads to regenerate thumbnails. If you have ā€œ%1$sSmush my original full size images%2$sā€ enabled, we can still restore your thumbnails, but the quality will reflect your compressed original image. ', 'wp-smushit' ),
[59] Fix | Delete
'<a href="' . esc_url( network_admin_url( 'admin.php?page=smush' ) ) . '">',
[60] Fix | Delete
'</a>'
[61] Fix | Delete
);
[62] Fix | Delete
?>
[63] Fix | Delete
</span>
[64] Fix | Delete
</div>
[65] Fix | Delete
</div>
[66] Fix | Delete
[67] Fix | Delete
</form>
[68] Fix | Delete
[69] Fix | Delete
<?php $this->view( 'restore-images', array(), 'modals' ); ?>
[70] Fix | Delete
[71] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function