Skip to content

Commit 261f8d9

Browse files
Copilotpattonwebz
andauthored
Use raw plugin headers and JSON-string fallbacks in SystemInfo context
Agent-Logs-Url: https://github.com/equalizedigital/accessibility-checker/sessions/6ae1fdd6-3dd2-447c-b583-647b8037ce6b Co-authored-by: pattonwebz <3902039+pattonwebz@users.noreply.github.com>
1 parent 6ff279b commit 261f8d9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

includes/classes/SystemInfo/SystemInfo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static function get_active_plugins() {
2323
$active_plugins = [];
2424

2525
foreach ( wp_get_active_and_valid_plugins() as $plugin_path ) {
26-
$plugin_data = get_plugin_data( $plugin_path );
26+
$plugin_data = get_plugin_data( $plugin_path, false, false );
2727
$active_plugins[] = [
2828
'name' => $plugin_data['Name'] ?? '',
2929
'slug' => self::get_plugin_slug_from_path( $plugin_path ),
@@ -151,8 +151,8 @@ public static function get_license_request_context() {
151151
'environment' => self::get_environment_type(),
152152
'wp_version' => self::get_wordpress_version(),
153153
'php_version' => self::get_php_version(),
154-
'active_plugins' => false !== $active_plugins ? $active_plugins : [],
155-
'active_theme' => false !== $active_theme ? $active_theme : [],
154+
'active_plugins' => false !== $active_plugins ? $active_plugins : '[]',
155+
'active_theme' => false !== $active_theme ? $active_theme : '{}',
156156
];
157157
}
158158
}

0 commit comments

Comments
 (0)