| @@ -2,24 +2,21 @@ | ||
| 2 | 2 | namespace MaxButtons; |
| 3 | 3 | defined('ABSPATH') or die('No direct access permitted'); |
| 4 | 4 | |
| 5 | 5 | if (isset($_GET['action']) && $_GET['action'] != '') { |
| 6 | - // extra safety. | |
| 7 | - $action = sanitize_text_field($_GET['action']); | |
| 8 | - | |
| 6 | + // extra safety. | |
| 7 | + $action = sanitize_text_field($_GET['action']); | |
| 8 | + | |
| 9 | 9 | switch ($action) { |
| 10 | 10 | case 'button': |
| 11 | - case 'edit': | |
| 11 | + case 'edit': | |
| 12 | 12 | include_once 'maxbuttons-button.php'; |
| 13 | 13 | break; |
| 14 | - case 'test': | |
| 15 | - include_once 'maxbuttons-fa-test.php'; | |
| 16 | - break; | |
| 17 | 14 | default: |
| 18 | 15 | include_once 'maxbuttons-list.php'; |
| 19 | 16 | break; |
| 20 | - | |
| 21 | 17 | } |
| 22 | 18 | |
| 23 | 19 | } else { |
| 24 | 20 | include_once 'maxbuttons-list.php'; |
| 25 | 21 | } |
| 22 | + | |