Skip to content

Commit df169cb

Browse files
authored
Avoid early call to wptexturize in PluginProperties (#40)
1 parent a9e3803 commit df169cb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/Properties/PluginProperties.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ protected function __construct(string $pluginMainFile)
8484
if (!function_exists('get_plugin_data')) {
8585
require_once ABSPATH . 'wp-admin/includes/plugin.php';
8686
}
87-
88-
$pluginData = get_plugin_data($pluginMainFile);
87+
88+
// $markup = false, to avoid an incorrect early wptexturize call. Also we probably don't want HTML here anyway
89+
// @see https://core.trac.wordpress.org/ticket/49965
90+
$pluginData = get_plugin_data($pluginMainFile, false);
8991
$properties = Properties::DEFAULT_PROPERTIES;
9092

9193
// Map pluginData to internal structure.

0 commit comments

Comments
 (0)