Simplify WooPayments task view logic

This commit is contained in:
Vlad Olaru 2024-09-19 19:27:05 +03:00
parent fbd1464460
commit c5b12efcf1
No known key found for this signature in database
1 changed files with 1 additions and 4 deletions

View File

@ -117,10 +117,7 @@ class WooCommercePayments extends Task {
* @return bool
*/
public function can_view() {
$payments = $this->task_list->get_task( 'payments' );
return ! $payments->is_complete() && // Do not re-display the task if the general "Payments" task has already been completed.
self::is_supported();
return self::is_supported();
}
/**