From cb84768194416fb730543ed78f42ee8cc9fe630e Mon Sep 17 00:00:00 2001 From: osman sufy Date: Mon, 2 Dec 2024 12:42:52 +0600 Subject: [PATCH] [refactor] [sanitize] code --- templates/admin-header.php | 2 +- templates/svg-icons/pro-award.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/admin-header.php b/templates/admin-header.php index 933358c84..486d1fc61 100644 --- a/templates/admin-header.php +++ b/templates/admin-header.php @@ -19,7 +19,7 @@ is_pro_exists() && dokan_pro()->license->is_valid() ) { + if ( dokan()->is_pro_exists() && dokan_pro() && dokan_pro()->license->is_valid() ) { $pro_version = DOKAN_PRO_PLUGIN_VERSION; $license_plan = dokan_pro()->license->get_plan(); ?> diff --git a/templates/svg-icons/pro-award.php b/templates/svg-icons/pro-award.php index 44ce63a0d..ce3615647 100644 --- a/templates/svg-icons/pro-award.php +++ b/templates/svg-icons/pro-award.php @@ -5,9 +5,12 @@ * @since 3.3.0 */ +$args = $args ?? []; $width = $args['width'] ?? 20; $height = $args['height'] ?? 20; + + ?> - +