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; + + ?> - +