| @@ -81,14 +81,9 @@ | ||
| 81 | 81 | return false; |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | $this->load_hooks(); |
| 85 | - add_action( | |
| 86 | - 'plugins_loaded', | |
| 87 | - function() { | |
| 88 | - \WP_Dependency_Installer::instance()->run( $this->dir ); | |
| 89 | - } | |
| 90 | - ); | |
| 85 | + \WP_Dependency_Installer::instance()->run( $this->dir ); | |
| 91 | 86 | } |
| 92 | 87 | |
| 93 | 88 | /** |
| 94 | 89 | * Get the `wp-config.php` file path. |
| @@ -124,9 +119,9 @@ | ||
| 124 | 119 | * @return void |
| 125 | 120 | */ |
| 126 | 121 | public function load_hooks() { |
| 127 | 122 | add_action( |
| 128 | - 'plugins_loaded', | |
| 123 | + 'init', | |
| 129 | 124 | function() { |
| 130 | 125 | ( new Settings( self::$options, self::$config_path, $this->defined_constants ) ) |
| 131 | 126 | ->load_hooks() |
| 132 | 127 | ->process_filter_constants(); |