← All changes
|
WPDataProjects/Parent_Child/WPDP_Parent_List_Table.php
+5
-7
5.5.37
→
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 | } |