We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77b10b1 commit ca42debCopy full SHA for ca42deb
2 files changed
php/class-plugin.php
@@ -421,7 +421,6 @@ private function is_notice_component( $component ) {
421
* @return void
422
*/
423
public function init() {
424
- require_once ABSPATH . 'wp-admin/includes/plugin.php';
425
$plugin = get_plugin_data( CLDN_CORE );
426
$location = $this->locate_plugin();
427
$this->slug = ! empty( $plugin['TextDomain'] ) ? $plugin['TextDomain'] : $location['dir_basename'];
php/class-utils.php
@@ -331,6 +331,8 @@ protected static function table_installed() {
331
* Install our custom table.
332
333
public static function install() {
334
+ // Ensure that the plugin bootstrap is loaded.
335
+ get_plugin_instance()->init();
336
337
$sql = self::get_table_sql();
338
0 commit comments