File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -421,7 +421,6 @@ private function is_notice_component( $component ) {
421421 * @return void
422422 */
423423 public function init () {
424- require_once ABSPATH . 'wp-admin/includes/plugin.php ' ;
425424 $ plugin = get_plugin_data ( CLDN_CORE );
426425 $ location = $ this ->locate_plugin ();
427426 $ this ->slug = ! empty ( $ plugin ['TextDomain ' ] ) ? $ plugin ['TextDomain ' ] : $ location ['dir_basename ' ];
Original file line number Diff line number Diff line change @@ -331,6 +331,8 @@ protected static function table_installed() {
331331 * Install our custom table.
332332 */
333333 public static function install () {
334+ // Ensure that the plugin bootstrap is loaded.
335+ get_plugin_instance ()->init ();
334336
335337 $ sql = self ::get_table_sql ();
336338
You can’t perform that action at this time.
0 commit comments