← All changes
|
jetpack_vendor/automattic/jetpack-waf/src/exceptions/class-rules-api-exception.php
+4
-1
12.2.3
→
16.3-beta
View file →
| @@ -8,8 +8,12 @@ | ||
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | namespace Automattic\Jetpack\Waf; |
| 11 | 11 | |
| 12 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 13 | + exit( 0 ); | |
| 14 | +} | |
| 15 | + | |
| 12 | 16 | /** |
| 13 | 17 | * Custom exception for WAF rules API errors. |
| 14 | 18 | */ |
| 15 | 19 | class Rules_API_Exception extends Waf_Exception { |
| @@ -19,6 +23,5 @@ | ||
| 19 | 23 | * |
| 20 | 24 | * @var string |
| 21 | 25 | */ |
| 22 | 26 | const SLUG = 'rules_api_error'; |
| 23 | - | |
| 24 | 27 | } |