| @@ -477,10 +477,10 @@ | ||
| 477 | 477 | if( empty( $post ) ) { |
| 478 | 478 | return; |
| 479 | 479 | } |
| 480 | 480 | |
| 481 | - $dateFrom = !empty( $post['display_from'] ) ? date('Y-m-d',strtotime('-'.$post['display_from'].' days',time())) : ''; | |
| 482 | - $dateTo = date('Y-m-d',strtotime('1 days',time())); | |
| 481 | + $dateFrom = !empty( $post['display_from'] ) ? gmdate('Y-m-d',strtotime('-'.$post['display_from'].' days',time())) : ''; | |
| 482 | + $dateTo = gmdate('Y-m-d',strtotime('1 days',time())); | |
| 483 | 483 | $amount = !empty( $post['display_last'] ) ? $post['display_last'] : 10; |
| 484 | 484 | |
| 485 | 485 | $get_orders = \FluentCart\App\Models\Order::with(['customer', 'order_items', 'billing_address', 'shipping_address']) |
| 486 | 486 | ->orderBy('created_at', 'desc') |
| @@ -667,8 +667,9 @@ | ||
| 667 | 667 | $args = array( |
| 668 | 668 | 'post_type' => $this->post_type, |
| 669 | 669 | 'post_status' => 'publish', |
| 670 | 670 | 'posts_per_page' => 20, |
| 671 | + // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_tax_query -- False positive: the query is prepared via $this->wpdb->prepare(), which this sniff does not recognise, and only $wpdb->prefix table names are interpolated. Audited 2026-07-16. | |
| 671 | 672 | 'tax_query' => array( |
| 672 | 673 | array( |
| 673 | 674 | 'taxonomy' => 'product-categories', |
| 674 | 675 | 'field' => 'slug', |
| @@ -760,8 +761,9 @@ | ||
| 760 | 761 | return $messages; |
| 761 | 762 | } |
| 762 | 763 | |
| 763 | 764 | public function doc(){ |
| 765 | + /* translators: %1$s: FluentCart WordPress plugin installed & configured link URL, %2$s: documentation link URL, %3$s: 👉 NotificationX Integration with FluentCart link URL */ | |
| 764 | 766 | return sprintf(__('<p>Make sure that you have the <a target="_blank" href="%1$s">FluentCart WordPress plugin installed & configured</a> to use its campaign and selling data. For detailed guidelines, check out the step-by-step <a target="_blank" href="%2$s">documentation</a>.</p> |
| 765 | 767 | <a target="_blank" href="%3$s">👉 NotificationX Integration with FluentCart</a>', 'notificationx'), |
| 766 | 768 | 'https://wordpress.org/plugins/fluent-cart/', |
| 767 | 769 | 'https://notificationx.com/docs/fluentcart-sales-notifications/', |