← All changes
|
includes/booking-appointment/booking-appointment__pricing.php
+2
-2
11.5
→
11.9
View file →
| @@ -19,9 +19,9 @@ | ||
| 19 | 19 | * |
| 20 | 20 | * @return array<string,mixed> Filtered parameters. |
| 21 | 21 | */ |
| 22 | 22 | function wpbc_booking_appointment_filter_cost_params( $params ) { |
| 23 | - if ( ! wpbc_is_11_5_features_enabled() || ! wpbc_appointment_services_is_pricing_available() || ! is_array( $params ) || ! empty( $params['service_id'] ) ) { | |
| 23 | + if ( ! wpbc_appointment_services_is_pricing_available() || ! is_array( $params ) || ! empty( $params['service_id'] ) ) { | |
| 24 | 24 | return $params; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | // phpcs:disable WordPress.Security.NonceVerification.Missing, WordPress.Security.NonceVerification.Recommended |
| @@ -57,9 +57,9 @@ | ||
| 57 | 57 | */ |
| 58 | 58 | function wpbc_booking_appointment_get_cost_service( $params ) { |
| 59 | 59 | static $cache = array(); |
| 60 | 60 | |
| 61 | - if ( ! wpbc_is_11_5_features_enabled() || ! wpbc_appointment_services_is_pricing_available() || ! function_exists( 'wpbc_appointment_services_repository' ) ) { | |
| 61 | + if ( ! wpbc_appointment_services_is_pricing_available() || ! function_exists( 'wpbc_appointment_services_repository' ) ) { | |
| 62 | 62 | return null; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | $booking_id = ! empty( $params['booking_id'] ) ? absint( $params['booking_id'] ) : 0; |