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 | WPDataProjects/Parent_Child/WPDP_Parent_List_Table.php +5 -7 5.5.32 → 5.5.85 View file →
@@ -44,9 +44,9 @@
44 44 public function __construct( $args = array() ) {
45 45 if ( isset( $args['project'] ) ) {
46 46 $this->project = $args['project'];
47 47 } else {
48 - wp_die( __( 'ERROR: Wrong arguments', 'wp-data-access' ) );
48 + wp_die( esc_attr__( 'ERROR: Wrong arguments', 'wp-data-access' ) );
49 49 }
50 50
51 51 $args['allow_import'] = 'off';
52 52
@@ -112,9 +112,9 @@
112 112 $title = __( 'Delete parent row and its child rows', 'wp-data-access' );
113 113 $actions['delete'] = sprintf(
114 114 '
115 115 <a href="javascript:void(0)" class="wpda_tooltip"
116 - title="' . $title . '"
116 + title="' . esc_attr( $title ) . '"
117 117 onclick="if (confirm(\'%s\')) jQuery(\'%s\').submit()"
118 118 >
119 119 <span style="white-space:nowrap">
120 120 <i class="fas fa-trash wpda_icon_on_button"></i>
@@ -228,9 +228,10 @@
228 228 */
229 229 public function delete_row_relationship( $table_name, $where ) {
230 230 $wpdadb = WPDADB::get_db_connection( $this->schema_name );
231 231 if ( null === $wpdadb ) {
232 - wp_die( sprintf( __( 'ERROR - Remote database %s not available', 'wp-data-access' ), esc_attr( $this->schema_name ) ) );
232 + /* translators: %s = database name */
233 + wp_die( sprintf( esc_attr__( 'ERROR - Remote database %s not available', 'wp-data-access' ), esc_attr( $this->schema_name ) ) );
233 234 }
234 235
235 236 $cannot_delete_from_view = new WPDA_Dictionary_Exist( $this->schema_name, $table_name );
236 237 if ( $cannot_delete_from_view->is_view() ) {
@@ -262,16 +263,13 @@
262 263 <input type="hidden" name="mode" value="edit">
263 264 <input type="hidden" name="table_name" value="<?php echo esc_attr( $this->table_name ); ?>">
264 265 <button type="submit" class="page-title-action">
265 266 <i class="fas fa-plus-circle wpda_icon_on_button"></i>
266 - <?php echo __( 'Add New', 'wp-data-access' ); ?>
267 + <?php esc_html_e( 'Add New', 'wp-data-access' ); ?>
267 268 </button>
268 269 </div>
269 270 </form>
270 271 <?php
271 - if ( null !== $this->wpda_import ) {
272 - $this->wpda_import->add_button( __( 'Import', 'wp-data-access' ) );
273 - }
274 272 }
275 273 }
276 274
277 275 }