| @@ -5,10 +5,8 @@ | ||
| 5 | 5 | * @package Timetics |
| 6 | 6 | */ |
| 7 | 7 | namespace Timetics\Core\Appointments; |
| 8 | 8 | |
| 9 | -defined( 'ABSPATH' ) || exit; | |
| 10 | - | |
| 11 | 9 | use Timetics\Base\Api; |
| 12 | 10 | use Timetics\Utils\Singleton; |
| 13 | 11 | use WP_Error; |
| 14 | 12 | |
| @@ -317,10 +315,9 @@ | ||
| 317 | 315 | |
| 318 | 316 | $response = [ |
| 319 | 317 | 'success' => 1, |
| 320 | 318 | 'status_code' => 200, |
| 321 | - /* translators: 1: Number of deleted categories, 2: Total number of categories */ | |
| 322 | - 'message' => sprintf( __( 'Successfully deleted %1$d out of %2$d categories', 'timetics' ), $counter, count( $ids ) ), | |
| 319 | + 'message' => sprintf( __( 'Successfully deleted %d out of %d categories', 'timetics' ), $counter, count( $ids ) ), | |
| 323 | 320 | ]; |
| 324 | 321 | |
| 325 | 322 | return rest_ensure_response( $response ); |
| 326 | 323 | } |
| @@ -362,9 +359,8 @@ | ||
| 362 | 359 | private function get_post_ids( $term_id ) { |
| 363 | 360 | $args = [ |
| 364 | 361 | 'post_type' => 'timetics-appointment', |
| 365 | 362 | 'fields' => 'ids', |
| 366 | - // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_tax_query -- Tax query is necessary for filtering appointments by category | |
| 367 | 363 | 'tax_query' => [ |
| 368 | 364 | [ |
| 369 | 365 | 'taxonomy' => 'timetics-meeting-category', |
| 370 | 366 | 'terms' => $term_id, |