| 1 |
<?php |
| 2 |
|
| 3 |
namespace WPDataAccess\Settings { |
| 4 |
|
| 5 |
abstract class WPDA_Settings_Legacy_Page { |
| 6 |
|
| 7 |
protected $page; |
| 8 |
|
| 9 |
public function __construct() { |
| 10 |
|
| 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 |
} else { |
| 14 |
wp_die( esc_attr__( 'ERROR: Wrong arguments [missing page argument]', 'wp-data-access' ) ); |
| 15 |
} |
| 16 |
|
| 17 |
} |
| 18 |
|
| 19 |
abstract public function show(); |
| 20 |
|
| 21 |
} |
| 22 |
|
| 23 |
} |