Helper: Clean up unused code.
This commit is contained in:
parent
64467a0925
commit
4a5d0c3ec3
|
@ -337,20 +337,6 @@ class WC_Helper {
|
|||
);
|
||||
|
||||
return $filters;
|
||||
|
||||
if ( empty( $subscriptions ) ) {
|
||||
return $filters;
|
||||
}
|
||||
|
||||
foreach ( $filters as $key => $label ) {
|
||||
$_subs = $subscriptions;
|
||||
self::_filter( $_subs, $key );
|
||||
$filters[ $key ] = sprintf( $label, count( $_subs ) );
|
||||
}
|
||||
|
||||
// Cache it.
|
||||
$_filters = $filters;
|
||||
return $_filters;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue