We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 77b10b1 + 2cbcc5c commit fcf5aa2Copy full SHA for fcf5aa2
2 files changed
php/class-plugin.php
@@ -422,6 +422,7 @@ private function is_notice_component( $component ) {
422
*/
423
public function init() {
424
require_once ABSPATH . 'wp-admin/includes/plugin.php';
425
+
426
$plugin = get_plugin_data( CLDN_CORE );
427
$location = $this->locate_plugin();
428
$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