Co-authored-by: Kaushik Somaiya <kaushiksomaiya@Kaushiks-MacBook-Pro.local> Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
This commit is contained in:
parent
fd7fc355fa
commit
102fabbee0
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Fix tooltips not appearing in the orders list admin page.
|
|
@ -714,8 +714,10 @@ class ListTable extends WP_List_Table {
|
|||
* @return void
|
||||
*/
|
||||
public function render_order_status_column( WC_Order $order ): void {
|
||||
$tooltip = '';
|
||||
$comment_count = get_comment_count( $order->get_id() );
|
||||
$tooltip = '';
|
||||
remove_filter( 'comments_clauses', array( 'WC_Comments', 'exclude_order_comments' ), 10, 1 );
|
||||
$comment_count = get_comment_count( $order->get_id() );
|
||||
add_filter( 'comments_clauses', array( 'WC_Comments', 'exclude_order_comments' ), 10, 1 );
|
||||
$approved_comments_count = absint( $comment_count['approved'] );
|
||||
|
||||
if ( $approved_comments_count ) {
|
||||
|
|
Loading…
Reference in New Issue