Prefer empty function over ! count for this #2246
This commit is contained in:
parent
93e55e19e0
commit
b62e3eca17
|
@ -227,7 +227,7 @@ if ( ! function_exists( 'woocommerce_settings' ) ) {
|
|||
'integration' => __( 'Integration', 'woocommerce' )
|
||||
);
|
||||
|
||||
if ( ! count( $woocommerce->integrations->get_integrations() ) )
|
||||
if ( empty( $woocommerce->integrations->get_integrations() ) )
|
||||
unset( $tabs['integration'] );
|
||||
|
||||
$tabs = apply_filters('woocommerce_settings_tabs_array', $tabs);
|
||||
|
|
Loading…
Reference in New Issue