File tree Expand file tree Collapse file tree
includes/classes/SystemInfo Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments