Skip to content

Commit

Permalink
fix(Plugin_Merge_Provider_Abstract) avoid doing_it_wrong
Browse files Browse the repository at this point in the history
While we need the plugin text domain in the matching function, no need
to load markup and translate information.
  • Loading branch information
lucatume committed Nov 22, 2024
1 parent 9424602 commit 01ab890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Common/Integrations/Plugin_Merge_Provider_Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function get_plugin_real_path(): string {
}

// Get plugin data.
$plugin_data = get_plugin_data( $plugin_file_path );
$plugin_data = get_plugin_data( $plugin_file_path, false, false );

// Check for TextDomain and match.
if ( isset( $plugin_data['TextDomain'] ) && $plugin_data['TextDomain'] === $text_domain ) {
Expand Down

0 comments on commit 01ab890

Please sign in to comment.