PluginProbe
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards / 5.5.85
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards v5.5.85
5.5.85 5.5.84 5.5.83 5.5.82 5.5.81 5.5.80 5.5.79 5.5.77 5.5.76 5.5.75 5.5.73 5.5.72 5.5.22 5.5.23 5.5.29 5.5.3 5.5.31 5.5.32 5.5.34 5.5.35 5.5.36 5.5.37 5.5.4 5.5.40 5.5.41 All 161 releases
← All changes | WPDataAccess/Settings/WPDA_Settings_FrontEnd.php +11 -11 5.5.76 → 5.5.85 View file →
@@ -31,9 +31,9 @@
31 31
32 32 // Security check.
33 33 $wp_nonce = isset( $_REQUEST['_wpnonce'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['_wpnonce'] ) ) : ''; // input var okay.
34 34 if ( ! wp_verify_nonce( $wp_nonce, 'wpda-front-end-settings-' . WPDA::get_current_user_login() ) ) {
35 - wp_die( __( 'ERROR: Not authorized', 'wp-data-access' ) );
35 + wp_die( esc_attr__( 'ERROR: Not authorized', 'wp-data-access' ) );
36 36 }
37 37
38 38 if ( 'save' === $action ) {
39 39 if ( $is_wp_database ) {
@@ -60,9 +60,9 @@
60 60 // Add existing table to list.
61 61 $table_access_selected_new_value_checked[ $key ] = $value;
62 62 } else {
63 63 // An invalid table name was provided. Might be an sql injection attack or an invalid state.
64 - wp_die( __( 'ERROR: Table not found', 'wp-data-access' ) );
64 + wp_die( esc_attr__( 'ERROR: Table not found', 'wp-data-access' ) );
65 65 }
66 66 }
67 67 } else {
68 68 $table_access_selected_new_value_checked = '';
@@ -139,9 +139,9 @@
139 139 <form id="wpda_settings_frontend" method="post"
140 140 action="?page=<?php echo esc_attr( $this->page ); ?>&tab=frontend">
141 141 <table class="wpda-table-settings">
142 142 <tr>
143 - <th><?php echo __( 'Table access', 'wp-data-access' ); ?></th>
143 + <th><?php esc_html_e( 'Table access', 'wp-data-access' ); ?></th>
144 144 <td>
145 145 <select name="database" id="schema_name">
146 146 <?php
147 147 $schema_names = WPDA_Dictionary_Lists::get_db_schemas();
@@ -157,9 +157,9 @@
157 157 type="radio"
158 158 name="table_access"
159 159 value="show"
160 160 <?php echo 'show' === $table_access ? 'checked' : ''; ?>
161 - ><?php echo $is_wp_database ? __( 'Show WordPress tables', 'wp-data-access' ) : __( 'Show all tables', 'wp-data-access' ); ?>
161 + ><?php echo $is_wp_database ? esc_attr__( 'Show WordPress tables', 'wp-data-access' ) : esc_attr__( 'Show all tables', 'wp-data-access' ); ?>
162 162 </label>
163 163 <br/>
164 164 <?php
165 165 if ( $is_wp_database ) {
@@ -169,9 +169,9 @@
169 169 type="radio"
170 170 name="table_access"
171 171 value="hide"
172 172 <?php echo 'hide' === $table_access ? 'checked' : ''; ?>
173 - ><?php echo __( 'Hide WordPress tables', 'wp-data-access' ); ?>
173 + ><?php esc_html_e( 'Hide WordPress tables', 'wp-data-access' ); ?>
174 174 </label>
175 175 <br/>
176 176 <?php
177 177 }
@@ -181,9 +181,9 @@
181 181 type="radio"
182 182 name="table_access"
183 183 value="select"
184 184 <?php echo 'select' === $table_access ? 'checked' : ''; ?>
185 - ><?php echo __( 'Show only selected tables', 'wp-data-access' ); ?>
185 + ><?php esc_html_e( 'Show only selected tables', 'wp-data-access' ); ?>
186 186 </label>
187 187 <div id="tables_selected" <?php echo 'select' === $table_access ? '' : 'style="display:none"'; ?>>
188 188 <br/>
189 189 <select name="table_access_selected[]" multiple size="10">
@@ -214,15 +214,15 @@
214 214 </script>
215 215 </td>
216 216 </tr>
217 217 <tr>
218 - <th><?php echo __( 'Admin toolbar', 'wp-data-access' ); ?></th>
218 + <th><?php esc_html_e( 'Admin toolbar', 'wp-data-access' ); ?></th>
219 219 <td>
220 220 <label>
221 221 <input type="checkbox" name="add_projects_to_toolbar"
222 222 <?php echo 'on' === $add_projects_to_toolbar ? 'checked' : ''; ?>
223 223 />
224 - <?php echo __( 'Add projects to toolbar', 'wp-data-access' ); ?>
224 + <?php esc_html_e( 'Add projects to toolbar', 'wp-data-access' ); ?>
225 225 </label>
226 226 </td>
227 227 </tr>
228 228 </table>
@@ -230,18 +230,18 @@
230 230 <div class="wpda-table-settings-button">
231 231 <input type="hidden" name="action" value="save"/>
232 232 <button type="submit" class="button button-primary">
233 233 <i class="fas fa-check wpda_icon_on_button"></i>
234 - <?php echo __( 'Save Front-end Settings', 'wp-data-access' ); ?>
234 + <?php esc_html_e( 'Save Front-end Settings', 'wp-data-access' ); ?>
235 235 </button>
236 236 <a href="javascript:void(0)"
237 - onclick="if (confirm('<?php echo __( 'Reset to defaults?', 'wp-data-access' ); ?>')) {
237 + onclick="if (confirm('<?php esc_html_e( 'Reset to defaults?', 'wp-data-access' ); ?>')) {
238 238 jQuery('input[name=&quot;action&quot;]').val('setdefaults');
239 239 jQuery('#wpda_settings_frontend').trigger('submit')
240 240 }"
241 241 class="button">
242 242 <i class="fas fa-times-circle wpda_icon_on_button"></i>
243 - <?php echo __( 'Reset Front-end Settings To Defaults', 'wp-data-access' ); ?>
243 + <?php esc_html_e( 'Reset Front-end Settings To Defaults', 'wp-data-access' ); ?>
244 244 </a>
245 245 </div>
246 246 <?php wp_nonce_field( 'wpda-front-end-settings-' . WPDA::get_current_user_login(), '_wpnonce', false ); ?>
247 247 </form>