Skip to content

Commit

Permalink
Avoid early wptexturize
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Meißelbach <[email protected]>
  • Loading branch information
Biont authored Mar 7, 2024
1 parent a9e3803 commit 263ac54
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 @@ -84,8 +84,9 @@ protected function __construct(string $pluginMainFile)
if (!function_exists('get_plugin_data')) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
}

$pluginData = get_plugin_data($pluginMainFile);

// $markup = false, to avoid an incorrect early wptexturize call. Also we probably don't want HTML here anyway
$pluginData = get_plugin_data($pluginMainFile, false);
$properties = Properties::DEFAULT_PROPERTIES;

// Map pluginData to internal structure.
Expand Down

0 comments on commit 263ac54

Please sign in to comment.