PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
← All changes | templates/database/tables.php +17 -17 3.2.7 → 4.7.0 View file →
@@ -1,9 +1,9 @@
1 -<?php if (!defined('WPO_VERSION')) die('No direct access allowed'); ?>
1 +<?php if (!defined('ABSPATH')) die('No direct access allowed'); ?>
2 2 <div class="wpo_shade hidden">
3 3 <div class="wpo_shade_inner">
4 4 <span class="dashicons dashicons-update-alt wpo-rotate"></span>
5 - <h4><?php _e('Loading data...', 'wp-optimize'); ?></h4>
5 + <h4><?php esc_html_e('Loading data...', 'wp-optimize'); ?></h4>
6 6 </div>
7 7 </div>
8 8
9 9 <?php
@@ -9,9 +9,9 @@
9 9 <?php
10 10 // This next bit belongs somewhere else, I think.
11 11 ?>
12 12 <?php if ($optimize_db) { ?>
13 - <p><?php _e('Optimized all the tables found in the database.', 'wp-optimize'); ?></p>
13 + <p><?php esc_html_e('Optimized all the tables found in the database.', 'wp-optimize'); ?></p>
14 14 <?php } ?>
15 15 <?php
16 16
17 17 // used for output premium functionality
@@ -20,9 +20,9 @@
20 20 ?>
21 21
22 22 <?php $wp_optimize->include_template('take-a-backup.php', false, array('label' => __('Take a backup with UpdraftPlus before any actions upon tables (recommended).', 'wp-optimize'), 'default_checkbox_value' => 'true', 'checkbox_name' => 'enable-auto-backup-1')); ?>
23 23
24 -<p class="wpo-table-list-filter"><strong><?php echo __('Database name:', 'wp-optimize')." '".htmlspecialchars(DB_NAME)."'"; ?><a id="wp_optimize_table_list_refresh" href="#" class="wpo-refresh-button"><span class="dashicons dashicons-image-rotate"></span><?php _e('Refresh data', 'wp-optimize'); ?></a></strong> <input id="wpoptimize_table_list_filter" class="search" type="search" value="" placeholder="<?php esc_attr_e('Search for table', 'wp-optimize'); ?>" data-column="1" /></p>
24 +<p class="wpo-table-list-filter"><strong><?php echo esc_html__('Database name:', 'wp-optimize')." '".esc_html(DB_NAME)."'"; ?><a id="wp_optimize_table_list_refresh" href="#" class="wpo-refresh-button"><span class="dashicons dashicons-image-rotate"></span><?php esc_html_e('Refresh data', 'wp-optimize'); ?></a></strong> <input id="wpoptimize_table_list_filter" class="search" type="search" value="" placeholder="<?php esc_attr_e('Search for table', 'wp-optimize'); ?>" data-column="1"></p>
25 25
26 26 <?php
27 27 $optimizer = WP_Optimize()->get_optimizer();
28 28 $table_prefix = $optimizer->get_table_prefix();
@@ -27,35 +27,35 @@
27 27 $optimizer = WP_Optimize()->get_optimizer();
28 28 $table_prefix = $optimizer->get_table_prefix();
29 29 if (!$table_prefix) {
30 30 ?>
31 -<p class="wpo-table-list-filter"><span style="color: #0073aa;"><span class="dashicons dashicons-info"></span> <?php echo __('Note:', 'wp-optimize').'</span> '.__('Your WordPress install does not use a database prefix, so WP-Optimize was not able to differentiate which tables belong to WordPress so all tables are listed below.', 'wp-optimize'); ?></p>
31 +<p class="wpo-table-list-filter"><span style="color: #0073aa;"><span class="dashicons dashicons-info"></span> <?php echo esc_html__('Note:', 'wp-optimize').'</span> '.esc_html__('Your WordPress install does not use a database prefix, so WP-Optimize was not able to differentiate which tables belong to WordPress so all tables are listed below.', 'wp-optimize'); ?></p>
32 32 <?php
33 33 }
34 34 ?>
35 35
36 -<table id="wpoptimize_table_list" class="wp-list-table widefat striped tablesorter wp-list-table-mobile-labels">
36 +<table id="wpoptimize_table_list" class="wp-list-table widefat striped wp-list-table-mobile-labels sortable">
37 37 <thead>
38 38 <tr>
39 - <th><?php _e('No.', 'wp-optimize'); ?></th>
40 - <th class="column-primary"><?php _e('Table', 'wp-optimize'); ?></th>
41 - <th><?php _e('Records', 'wp-optimize'); ?></th>
42 - <th><?php _e('Data Size', 'wp-optimize'); ?></th>
43 - <th><?php _e('Index Size', 'wp-optimize'); ?></th>
44 - <th><?php _e('Type', 'wp-optimize'); ?></th>
45 - <th><?php _e('Overhead', 'wp-optimize'); ?></th>
46 - <th><?php _e('Actions', 'wp-optimize'); ?></th>
39 + <th><?php esc_html_e('No.', 'wp-optimize'); ?></th>
40 + <th class="column-primary"><?php esc_html_e('Table', 'wp-optimize'); ?></th>
41 + <th><?php esc_html_e('Records', 'wp-optimize'); ?></th>
42 + <th><?php esc_html_e('Data Size', 'wp-optimize'); ?></th>
43 + <th><?php esc_html_e('Index Size', 'wp-optimize'); ?></th>
44 + <th><?php esc_html_e('Type', 'wp-optimize'); ?></th>
45 + <th><?php esc_html_e('Overhead', 'wp-optimize'); ?></th>
46 + <th class="no-sort"><?php esc_html_e('Actions', 'wp-optimize'); ?></th>
47 47 </tr>
48 48 </thead>
49 49 <?php
50 50 if ($load_data) {
51 - WP_Optimize()->include_template('database/tables-body.php', false, array('optimize_db' => $optimize_db));
51 + WP_Optimize()->include_template('database/tables-body.php', false, $table_list_data);
52 52 } else {
53 53 ?>
54 54 <tbody>
55 55 <tr>
56 56 <td></td>
57 - <td class="loading" align="center" colspan="6"><img class="wpo-ajax-template-loader" width="16" height="16" src="<?php echo admin_url(); ?>images/spinner-2x.gif" /> <?php _e('Loading tables list...', 'wp-optimize'); ?></td>
57 + <td class="loading" colspan="6"><img class="wpo-ajax-template-loader" width="16" height="16" src="<?php echo esc_url(admin_url('images/spinner-2x.gif')); // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage -- N/A ?>" alt="..."> <?php esc_html_e('Loading tables list...', 'wp-optimize'); ?></td>
58 58 <td></td>
59 59 </tr>
60 60 </tbody>
61 61 <?php } ?>
@@ -61,9 +61,9 @@
61 61 <?php } ?>
62 62 </table>
63 63
64 64
65 -<div id="wpoptimize_table_list_tables_not_found"><?php _e('Tables not found.', 'wp-optimize'); ?></div>
65 +<div id="wpoptimize_table_list_tables_not_found"><?php esc_html_e('Tables not found.', 'wp-optimize'); ?></div>
66 66
67 67 <?php
68 68
69 69 WP_Optimize()->include_template('database/tables-list-after.php', false, array('optimize_db' => $optimize_db, 'load_data' => $load_data));