Skip to content

Commit

Permalink
Fix update detail display.
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-hoehmann committed Mar 5, 2023
1 parent d7a362f commit 690c1dd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion date-progress.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,13 @@ function date_progress_plugins_api($result, $action, $args)
if ('plugin_information' !== $action || plugin_basename(__DIR__) !== $args->slug) { return $result; }

// Check for updates.
return date_progress_plugin_information() || $result;
$plugin_information = date_progress_plugin_information();

if ($plugin_information) {
return $plugin_information;
} else {
return $result;
}
}

function date_progress_update_plugins($transient) {
Expand Down

0 comments on commit 690c1dd

Please sign in to comment.