← All changes
|
WPDataAccess/Utilities/WPDA_Reverse_Engineering.php
+5
-4
5.5.23
→
5.5.85
View file →
| @@ -53,9 +53,10 @@ | ||
| 53 | 53 | $this->table_name = $table_name; |
| 54 | 54 | |
| 55 | 55 | $this->wpdadb = WPDADB::get_db_connection( $this->schema_name ); |
| 56 | 56 | if ( null === $this->wpdadb ) { |
| 57 | - wp_die( sprintf( __( 'ERROR - Remote database %s not available', 'wp-data-access' ), esc_attr( $this->schema_name ) ) ); | |
| 57 | + /* translators: %s = database name */ | |
| 58 | + wp_die( sprintf( esc_attr__( 'ERROR - Remote database %s not available', 'wp-data-access' ), esc_attr( $this->schema_name ) ) ); | |
| 58 | 59 | } |
| 59 | 60 | } |
| 60 | 61 | |
| 61 | 62 | /** |
| @@ -198,9 +199,9 @@ | ||
| 198 | 199 | $this->table_name, |
| 199 | 200 | ) |
| 200 | 201 | ); |
| 201 | 202 | |
| 202 | - return $this->wpdadb->get_results( $query, 'ARRAY_A' ); // phpcs:ignore Standard.Category.SniffName.ErrorCode | |
| 203 | + return $this->wpdadb->get_results( $query, 'ARRAY_A' ); | |
| 203 | 204 | } |
| 204 | 205 | |
| 205 | 206 | /** |
| 206 | 207 | * Get database column info |
| @@ -232,9 +233,9 @@ | ||
| 232 | 233 | $this->table_name, |
| 233 | 234 | ) |
| 234 | 235 | ); |
| 235 | 236 | |
| 236 | - return $this->wpdadb->get_results( $query, 'ARRAY_A' ); // phpcs:ignore Standard.Category.SniffName.ErrorCode | |
| 237 | + return $this->wpdadb->get_results( $query, 'ARRAY_A' ); | |
| 237 | 238 | } |
| 238 | 239 | |
| 239 | 240 | /** |
| 240 | 241 | * Get database index info |
| @@ -261,9 +262,9 @@ | ||
| 261 | 262 | $this->table_name, |
| 262 | 263 | ) |
| 263 | 264 | ); |
| 264 | 265 | |
| 265 | - return $this->wpdadb->get_results( $query, 'ARRAY_A' ); // phpcs:ignore Standard.Category.SniffName.ErrorCode | |
| 266 | + return $this->wpdadb->get_results( $query, 'ARRAY_A' ); | |
| 266 | 267 | } |
| 267 | 268 | |
| 268 | 269 | } |
| 269 | 270 | |