Changeset 3234732
- Timestamp:
- 02/04/2025 01:07:10 PM (14 months ago)
- Location:
- mailchimp-for-woocommerce/trunk/includes
- Files:
-
- 2 edited
-
api/class-mailchimp-woocommerce-transform-coupons.php (modified) (1 diff)
-
class-mailchimp-woocommerce-service.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mailchimp-for-woocommerce/trunk/includes/api/class-mailchimp-woocommerce-transform-coupons.php
r3234127 r3234732 29 29 30 30 if ( ( ( $coupons = $this->getCouponPosts( $page, $limit ) ) && ! empty( $coupons['items'] ) ) ) { 31 foreach ( $coupons as $post_id ) {31 foreach ( $coupons['items'] as $post_id ) { 32 32 $response->items[] = $post_id; 33 33 $response->count++; -
mailchimp-for-woocommerce/trunk/includes/class-mailchimp-woocommerce-service.php
r3234127 r3234732 845 845 $rest_url_path = $rest_url['path'] ?? ''; 846 846 847 return strpos( (string) $current_url_path, (string) $rest_url_path, 0 ) === 0;847 return !empty($current_url_path) && !empty($rest_url_path) && strpos( (string) $current_url_path, (string) $rest_url_path, 0 ) === 0; 848 848 } 849 849
Note: See TracChangeset
for help on using the changeset viewer.