From 5e987d8982d19f76bfb34fc73f071b7e1d89c423 Mon Sep 17 00:00:00 2001 From: Mikk3lRo Date: Mon, 23 Oct 2017 23:59:09 +0200 Subject: [PATCH] Use the same method of checking for empty linkText as used in the pre- existing addCheckForUpdatesLink --- Puc/v4p2/Plugin/UpdateChecker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Puc/v4p2/Plugin/UpdateChecker.php b/Puc/v4p2/Plugin/UpdateChecker.php index 0191dcf..0a0a0ff 100644 --- a/Puc/v4p2/Plugin/UpdateChecker.php +++ b/Puc/v4p2/Plugin/UpdateChecker.php @@ -426,7 +426,7 @@ if ( !class_exists('Puc_v4p2_Plugin_UpdateChecker', false) ): $this->getUniqueName('view_details_link'), __( 'View details' ) ); - if ($linkText && !$viewDetailsExists) { + if ( !empty($linkText) && !$viewDetailsExists ) { $pluginTitle = $this->getPluginTitle(); //Show the link using the same method WP does $pluginMeta[] = sprintf( '%s',