| @@ -6,8 +6,13 @@ | ||
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | // phpcs:disable -- legacy functions for backwards compatibility. Required. |
| 9 | 9 | |
| 10 | +// Exit if accessed directly. | |
| 11 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 12 | + exit; | |
| 13 | +} | |
| 14 | + | |
| 10 | 15 | if ( ! class_exists( 'MainWP_DB' ) ) { |
| 11 | 16 | |
| 12 | 17 | /** |
| 13 | 18 | * MainWP Database Compatible class. |