Setup wizard: refactor featured service check to be more efficient.
Use `empty()` instead of `isset()` and a comparison.
This commit is contained in:
parent
e220926b65
commit
47085db0b2
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue