| @@ -24,10 +24,10 @@ | ||
| 24 | 24 | * @since 2.0.13 |
| 25 | 25 | */ |
| 26 | 26 | public static function export() { |
| 27 | 27 | $export_class = 'WPDataAccess\\Utilities\\WPDA_Export_Sql'; // Default export class exports to SQL. |
| 28 | - if ( isset( $_REQUEST['format_type'] ) ) { | |
| 29 | - $format_type = sanitize_text_field( wp_unslash( $_REQUEST['format_type'] ) ); // input var okay. | |
| 28 | + if ( isset( $_REQUEST['format_type'] ) ) { // phpcs:ignore | |
| 29 | + $format_type = sanitize_text_field( wp_unslash( $_REQUEST['format_type'] ) ); // phpcs:ignore | |
| 30 | 30 | switch ( $format_type ) { |
| 31 | 31 | case 'excel': |
| 32 | 32 | $export_class = 'WPDataAccess\\Utilities\\WPDA_Export_Excel'; |
| 33 | 33 | break; |