| @@ -41,9 +41,10 @@ | ||
| 41 | 41 | */ |
| 42 | 42 | public function __construct( $base, $active_tab = '' ) { |
| 43 | 43 | $this->base = sanitize_title( $base ); |
| 44 | 44 | |
| 45 | - $tab = filter_input( INPUT_GET, 'tab' ); | |
| 45 | + // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information. | |
| 46 | + $tab = isset( $_GET['tab'] ) && is_string( $_GET['tab'] ) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : ''; | |
| 46 | 47 | $this->active_tab = empty( $tab ) ? $active_tab : $tab; |
| 47 | 48 | } |
| 48 | 49 | |
| 49 | 50 | /** |
| @@ -112,8 +113,10 @@ | ||
| 112 | 113 | /** |
| 113 | 114 | * Display the tabs. |
| 114 | 115 | * |
| 115 | 116 | * @param Yoast_Form $yform Yoast Form needed in the views. |
| 117 | + * | |
| 118 | + * @return void | |
| 116 | 119 | */ |
| 117 | 120 | public function display( Yoast_Form $yform ) { |
| 118 | 121 | $formatter = new WPSEO_Option_Tabs_Formatter(); |
| 119 | 122 | $formatter->run( $this, $yform ); |