| @@ -1,6 +1,10 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | +if (! defined('ABSPATH')) { | |
| 4 | + exit; | |
| 5 | +} | |
| 6 | + | |
| 3 | 7 | use Boxzilla\Boxzilla; |
| 4 | 8 | |
| 5 | 9 | /** |
| 6 | 10 | * @return Boxzilla |
| @@ -8,9 +12,9 @@ | ||
| 8 | 12 | function boxzilla() |
| 9 | 13 | { |
| 10 | 14 | static $instance; |
| 11 | 15 | |
| 12 | - if (is_null($instance)) { | |
| 16 | + if ($instance === null) { | |
| 13 | 17 | $instance = new Boxzilla(); |
| 14 | 18 | } |
| 15 | 19 | |
| 16 | 20 | return $instance; |