| @@ -9,17 +9,35 @@ | ||
| 9 | 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | 10 | exit; |
| 11 | 11 | } |
| 12 | 12 | |
| 13 | +if ( ! function_exists( 'wpbc_is_11_5_features_enabled' ) ) { | |
| 14 | + /** | |
| 15 | + * Report that the released Booking Calendar 11.5 feature set is enabled. | |
| 16 | + * | |
| 17 | + * Booking Calendar Pro 11.5 conditionally calls this function before | |
| 18 | + * applying released pricing and booking-parameter filters. Free 11.6 keeps | |
| 19 | + * this compatibility shim so those supported mixed-version installations | |
| 20 | + * continue to execute the established Pro hooks. | |
| 21 | + * | |
| 22 | + * @deprecated 11.6.0 The 11.5 features are now always available. | |
| 23 | + * | |
| 24 | + * @return bool Always true. | |
| 25 | + */ | |
| 26 | + function wpbc_is_11_5_features_enabled() { | |
| 27 | + return true; | |
| 28 | + } | |
| 29 | +} | |
| 30 | + | |
| 13 | 31 | /** |
| 14 | - * Check whether the unfinished Booking Calendar 11.5 feature set may load. | |
| 32 | + * Check whether the unfinished Booking Calendar 11.6 feature set may load. | |
| 15 | 33 | * |
| 16 | - * The constant is deliberately a hard master gate. It is not filterable while | |
| 17 | - * disabled, which prevents an extension from accidentally exposing unfinished | |
| 18 | - * interfaces in an 11.4.x maintenance release. | |
| 34 | + * The constant is a hard, non-filterable bootstrap boundary. Disabling it | |
| 35 | + * removes 11.6 modules and menus while leaving released functionality loaded. | |
| 19 | 36 | * |
| 20 | - * @return bool True when the 11.5 feature modules may bootstrap. | |
| 37 | + * @return bool True when the 11.6 feature modules may bootstrap. | |
| 21 | 38 | */ |
| 22 | -function wpbc_is_11_5_features_enabled() { | |
| 39 | +function wpbc_is_11_6_features_enabled() { | |
| 23 | 40 | |
| 24 | - return defined( 'WPBC_ENABLE_11_5_FEATURES' ) && true === WPBC_ENABLE_11_5_FEATURES; | |
| 41 | + return defined( 'WPBC_ENABLE_11_6_FEATURES' ) && true === WPBC_ENABLE_11_6_FEATURES; | |
| 25 | 42 | } |
| 43 | + | |