Adjust download reporting active filters display
This commit is contained in:
parent
76a2e5fe87
commit
b8e208269e
|
@ -115,9 +115,13 @@ class WC_Report_Downloads extends WP_List_Table {
|
||||||
$filter_list[] = $filter_names[ $key ] . ' ' . $display_value . ' <a href="' . esc_url( remove_query_arg( $key ) ) . '" class="woocommerce-reports-remove-filter">×</a>';
|
$filter_list[] = $filter_names[ $key ] . ' ' . $display_value . ' <a href="' . esc_url( remove_query_arg( $key ) ) . '" class="woocommerce-reports-remove-filter">×</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo $filter_list ? ' - ' . wp_kses_post( implode( ', ', $filter_list ) ) : '';
|
|
||||||
echo '</h1>';
|
echo '</h1>';
|
||||||
|
|
||||||
|
echo '<div id="active-filters" class="woocommerce-reports-wide"><h2>';
|
||||||
|
echo __( 'Active filters', 'woocommerce' ) . ': ';
|
||||||
|
echo $filter_list ? wp_kses_post( implode( ', ', $filter_list ) ) : '';
|
||||||
|
echo '</h2></div>';
|
||||||
|
|
||||||
echo '<div id="poststuff" class="woocommerce-reports-wide">';
|
echo '<div id="poststuff" class="woocommerce-reports-wide">';
|
||||||
$this->display();
|
$this->display();
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
Loading…
Reference in New Issue