From 53c3e7b14fb35577849db57c11512dbba71a5cc2 Mon Sep 17 00:00:00 2001 From: Osman Goni Sufy <47870515+osmansufy@users.noreply.github.com> Date: Fri, 22 Nov 2024 11:40:17 +0600 Subject: [PATCH 1/2] [Call] get_plugin_data with $markup & $translate 'false' --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 6327c4a..b182538 100644 --- a/src/Client.php +++ b/src/Client.php @@ -191,7 +191,7 @@ protected function set_basename_and_slug() { require_once ABSPATH . 'wp-admin/includes/plugin.php'; - $plugin_data = get_plugin_data( $this->file ); + plugin_data = get_plugin_data( $this->file, false, false ); $this->project_version = $plugin_data['Version']; $this->type = 'plugin'; From 1ac12442243ebe76c54e59ec206af3bd5af93c07 Mon Sep 17 00:00:00 2001 From: Osman Goni Sufy <47870515+osmansufy@users.noreply.github.com> Date: Fri, 22 Nov 2024 12:33:28 +0600 Subject: [PATCH 2/2] Update Client.php --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index b182538..891264f 100644 --- a/src/Client.php +++ b/src/Client.php @@ -191,7 +191,7 @@ protected function set_basename_and_slug() { require_once ABSPATH . 'wp-admin/includes/plugin.php'; - plugin_data = get_plugin_data( $this->file, false, false ); + $plugin_data = get_plugin_data( $this->file, false, false ); $this->project_version = $plugin_data['Version']; $this->type = 'plugin';