← All changes
|
json-endpoints/jetpack/class.jetpack-json-api-modules-endpoint.php
+4
-1
12.5.2
→
16.3-a.1
View file →
| @@ -1,6 +1,10 @@ | ||
| 1 | 1 | <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName |
| 2 | 2 | |
| 3 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 4 | + exit( 0 ); | |
| 5 | +} | |
| 6 | + | |
| 3 | 7 | /** |
| 4 | 8 | * Base class for working with Jetpack Modules. |
| 5 | 9 | */ |
| 6 | 10 | abstract class Jetpack_JSON_API_Modules_Endpoint extends Jetpack_JSON_API_Endpoint { |
| @@ -153,6 +157,5 @@ | ||
| 153 | 157 | } |
| 154 | 158 | |
| 155 | 159 | return array_map( array( $this, 'format_module' ), $modules ); |
| 156 | 160 | } |
| 157 | - | |
| 158 | 161 | } |