Skip to content

Commit

Permalink
Avoid loading translations too early
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Meißelbach <m.meisselbach@inpsyde.com>
  • Loading branch information
Biont authored Nov 22, 2024
1 parent 171dd96 commit 1e1709d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Properties/PluginProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ protected function __construct(string $pluginMainFile)
}

// $markup = false, to avoid an incorrect early wptexturize call.
// We also probably don't want HTML here anyway
// $translate = false, to avoid loading translations too early
// @see https://core.trac.wordpress.org/ticket/49965
$pluginData = (array) get_plugin_data($pluginMainFile, false);
// @see https://core.trac.wordpress.org/ticket/34114
$pluginData = (array) get_plugin_data($pluginMainFile, false, false);
$properties = Properties::DEFAULT_PROPERTIES;

// Map pluginData to internal structure.
Expand Down

0 comments on commit 1e1709d

Please sign in to comment.