← All changes
|
WPDataAccess/Settings/WPDA_Settings_Legacy_Page.php
+3
-3
5.5.76
→
5.5.85
View file →
| @@ -7,12 +7,12 @@ | ||
| 7 | 7 | protected $page; |
| 8 | 8 | |
| 9 | 9 | public function __construct() { |
| 10 | 10 | |
| 11 | - if ( isset( $_REQUEST['page'] ) ) { | |
| 12 | - $this->page = sanitize_text_field( wp_unslash( $_REQUEST['page'] ) ); // input var okay. | |
| 11 | + if ( isset( $_REQUEST['page'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended | |
| 12 | + $this->page = sanitize_text_field( wp_unslash( $_REQUEST['page'] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended | |
| 13 | 13 | } else { |
| 14 | - wp_die( __( 'ERROR: Wrong arguments [missing page argument]', 'wp-data-access' ) ); | |
| 14 | + wp_die( esc_attr__( 'ERROR: Wrong arguments [missing page argument]', 'wp-data-access' ) ); | |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | } |
| 18 | 18 | |