Skip to content

Commit 2a4ae19

Browse files
committed
fix warning translation loaded too early
1 parent 9198110 commit 2a4ae19

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tawkto/tawkto.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ public function __construct() {
7171
require_once ABSPATH . 'wp-admin/includes/plugin.php';
7272
}
7373

74-
$plugin_data = get_plugin_data( __FILE__ );
74+
// TODO: Move to proper lifecycle hook.
75+
$plugin_data = get_plugin_data( __FILE__, false, false );
7576

7677
$this->plugin_ver = $plugin_data['Version'];
7778
}

0 commit comments

Comments
 (0)