Skip to content

Commit 2cbcc5c

Browse files
author
Marco Pereirinha
committed
Require the plugin.php as it is essencial on new installs
1 parent ca42deb commit 2cbcc5c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

php/class-plugin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,8 @@ private function is_notice_component( $component ) {
421421
* @return void
422422
*/
423423
public function init() {
424+
require_once ABSPATH . 'wp-admin/includes/plugin.php';
425+
424426
$plugin = get_plugin_data( CLDN_CORE );
425427
$location = $this->locate_plugin();
426428
$this->slug = ! empty( $plugin['TextDomain'] ) ? $plugin['TextDomain'] : $location['dir_basename'];

0 commit comments

Comments
 (0)