Skip to content

Commit

Permalink
Avoid early call to wptexturize in PluginProperties (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
Biont authored Mar 7, 2024
1 parent a9e3803 commit df169cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Properties/PluginProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ 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
// @see https://core.trac.wordpress.org/ticket/49965
$pluginData = get_plugin_data($pluginMainFile, false);
$properties = Properties::DEFAULT_PROPERTIES;

// Map pluginData to internal structure.
Expand Down

0 comments on commit df169cb

Please sign in to comment.