| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | namespace FilterEverything\Filter; |
| 4 | 4 | |
| 5 | -if ( ! defined('WPINC') ) { | |
| 6 | - wp_die(); | |
| 5 | +if ( ! defined('ABSPATH') ) { | |
| 6 | + exit; | |
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | class TabRenderer |
| 10 | 10 | { |
| @@ -43,8 +43,11 @@ | ||
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | public function current() |
| 46 | 46 | { |
| 47 | + /** | |
| 48 | + * string | |
| 49 | + */ | |
| 47 | 50 | $get = Container::instance()->getTheGet(); |
| 48 | 51 | return isset($get['tab']) ? sanitize_key($get['tab']) : null; |
| 49 | 52 | } |
| 50 | 53 | } |