| @@ -3,10 +3,48 @@ | ||
| 3 | 3 | if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
| 4 | 4 | exit(); |
| 5 | 5 | } |
| 6 | 6 | |
| 7 | -$http_headers_options = include dirname(__FILE__) . '/views/includes/options.inc.php'; | |
| 7 | +$options = array( | |
| 8 | + 'hh_x_frame_options', | |
| 9 | + 'hh_x_frame_options_value', | |
| 10 | + 'hh_x_frame_options_domain', | |
| 11 | + 'hh_x_xxs_protection', | |
| 12 | + 'hh_x_xxs_protection_value', | |
| 13 | + 'hh_x_content_type_options', | |
| 14 | + 'hh_x_content_type_options_value', | |
| 15 | + 'hh_strict_transport_security', | |
| 16 | + 'hh_strict_transport_security_value', //obsolete | |
| 17 | + 'hh_strict_transport_security_max_age', | |
| 18 | + 'hh_strict_transport_security_sub_domains', | |
| 19 | + 'hh_strict_transport_security_preload', | |
| 20 | + 'hh_public_key_pins', | |
| 21 | + 'hh_public_key_pins_sha256_1', | |
| 22 | + 'hh_public_key_pins_sha256_2', | |
| 23 | + 'hh_public_key_pins_max_age', | |
| 24 | + 'hh_public_key_pins_sub_domains', | |
| 25 | + 'hh_public_key_pins_report_uri', | |
| 26 | + 'hh_x_ua_compatible', | |
| 27 | + 'hh_x_ua_compatible_value', | |
| 28 | + 'hh_p3p', | |
| 29 | + 'hh_p3p_value', | |
| 30 | + 'hh_referrer_policy', | |
| 31 | + 'hh_referrer_policy_value', | |
| 32 | + 'hh_access_control_allow_origin', | |
| 33 | + 'hh_access_control_allow_origin_value', | |
| 34 | + 'hh_access_control_allow_origin_url', | |
| 35 | + 'hh_access_control_allow_credentials', | |
| 36 | + 'hh_access_control_allow_credentials_value', | |
| 37 | + 'hh_access_control_allow_methods', | |
| 38 | + 'hh_access_control_allow_methods_value', | |
| 39 | + 'hh_access_control_allow_headers', | |
| 40 | + 'hh_access_control_allow_headers_value', | |
| 41 | + 'hh_access_control_expose_headers', | |
| 42 | + 'hh_access_control_expose_headers_value', | |
| 43 | + 'hh_access_control_max_age', | |
| 44 | + 'hh_access_control_max_age_value', | |
| 45 | +); | |
| 8 | 46 | |
| 9 | -foreach ($http_headers_options as $http_headers_option) | |
| 47 | +foreach ($options as $option) | |
| 10 | 48 | { |
| 11 | - delete_option( $http_headers_option[0] ); | |
| 49 | + delete_option( $option ); | |
| 12 | 50 | } |