Use the same method of checking for empty linkText as used in the pre-

existing addCheckForUpdatesLink
This commit is contained in:
Mikk3lRo 2017-10-23 23:59:09 +02:00
parent e5d96dbf05
commit 5e987d8982
1 changed files with 1 additions and 1 deletions

View File

@ -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( '<a href="%s" class="thickbox open-plugin-details-modal" aria-label="%s" data-title="%s">%s</a>',