Setup wizard: refactor featured service check to be more efficient.

Use `empty()` instead of `isset()` and a comparison.
This commit is contained in:
Jeff Stieler 2017-09-16 19:32:05 -07:00
parent e220926b65
commit 47085db0b2
1 changed files with 1 additions and 1 deletions

View File

@ -992,7 +992,7 @@ class WC_Admin_Setup_Wizard {
}
public function is_featured_service( $service ) {
return isset( $service['featured'] ) && true === $service['featured'];
return ! empty( $service['featured'] );
}
public function is_not_featured_service( $service ) {