← All changes
|
includes/page-availability-general/ajax/availability_general__save.php
+2
-2
11.4
→
11.8.4
View file →
| @@ -1,4 +1,4 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * AJAX save handler for General Availability. |
| 4 | 4 | * |
| @@ -21,9 +21,9 @@ | ||
| 21 | 21 | wp_send_json_error( array( 'message' => __( 'Security check failed.', 'booking' ) ), 403 ); |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | if ( ! wpbc_is_mu_user_can_be_here( 'only_super_admin' ) || ! current_user_can( wpbc_availability_general__get_manage_cap() ) ) { |
| 25 | - wp_send_json_error( array( 'message' => __( 'You do not have permission to change general availability.', 'booking' ) ), 403 ); | |
| 25 | + wp_send_json_error( array( 'message' => __( 'You do not have permission to change Schedule & Rules.', 'booking' ) ), 403 ); | |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | $cleaned_data = wpbc_availability_general__validate_data( $_POST ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing |
| 29 | 29 | wpbc_availability_general__update_settings( $cleaned_data ); |
| @@ -29,9 +29,9 @@ | ||
| 29 | 29 | wpbc_availability_general__update_settings( $cleaned_data ); |
| 30 | 30 | |
| 31 | 31 | wp_send_json_success( |
| 32 | 32 | array( |
| 33 | - 'message' => __( 'General availability settings updated.', 'booking' ), | |
| 33 | + 'message' => __( 'Schedule & Rules settings updated.', 'booking' ), | |
| 34 | 34 | 'settings' => wpbc_availability_general__get_settings_response(), |
| 35 | 35 | ) |
| 36 | 36 | ); |
| 37 | 37 | } |