Skip to content

Commit

Permalink
Use WordPress internal constant as path
Browse files Browse the repository at this point in the history
  • Loading branch information
TorbenLundsgaard committed Sep 18, 2023
1 parent 7cd9693 commit 8ce1327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Common/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function get_active_plugins(): array {
public function add_active_plugin_and_version( string $plugin, string $key, array $data ): array {

if ( \is_plugin_active( $plugin ) ) {
$version = \get_plugin_data( GTMKIT_PATH . '../' . $plugin )['Version'];
$version = \get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin )['Version'];
$data[ $key ] = $this->shorten_version( $version );
}

Expand Down

0 comments on commit 8ce1327

Please sign in to comment.