Skip to content

Commit

Permalink
change name of variable for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
nerrad committed Jul 22, 2022
1 parent bacee38 commit 7f33d40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/experimental/class-wp-theme-json-resolver-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ public static function get_plugin_theme_data() {
// have configs from plugins, now let's register and merge.
$plugin_json = new WP_Theme_JSON_Gutenberg();
foreach ( $plugins_data as $plugin_path => $plugin_config ) {
$plugin_data = get_plugin_data( $plugin_path, false, false );
if ( isset( $plugin_data['TextDomain'] ) ) {
$plugin_config = static::translate( $plugin_config, $plugin_data['TextDomain'] );
$plugin_meta_data = get_plugin_data( $plugin_path, false, false );
if ( isset( $plugin_meta_data['TextDomain'] ) ) {
$plugin_config = static::translate( $plugin_config, $plugin_meta_data['TextDomain'] );
}
// TODO, this is where we could potentially introduce different merge
// strategies for plugin provided data.
Expand Down

0 comments on commit 7f33d40

Please sign in to comment.