Skip to content

Commit

Permalink
some lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed Mar 13, 2024
1 parent 0563923 commit 2fd8f86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/Listeners/Commerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function products_count( $data ) {
if ( ! isset( $data['meta'] ) ) {
$data['meta'] = array();
}
if(isset(wp_count_posts( 'product' )->publish)){
if( isset( wp_count_posts( 'product' )->publish ) ) {
$data['meta']['products_count'] = (int) wp_count_posts( 'product' )->publish;
}

Expand All @@ -78,7 +78,7 @@ public function orders_count( $data ) {
if ( ! isset( $data['meta'] ) ) {
$data['meta'] = array();
}
if(isset(wp_count_posts( 'shop_order' )->publish)){
if( isset( wp_count_posts( 'shop_order' )->publish ) ) {
$data['meta']['orders_count'] = (int) wp_count_posts( 'shop_order' )->publish;
}

Expand Down

0 comments on commit 2fd8f86

Please sign in to comment.